Skip to content

Commit

Permalink
fix: top right buttons should now be visible on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mkb committed Mar 29, 2022
1 parent 980d902 commit a95f159
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 31 deletions.
34 changes: 18 additions & 16 deletions obsidian.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions scss/layouts/_titlebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ body:not(.is-mobile) .workspace-leaf.mod-active .view-header-title {

.titlebar-text {
font-family: var(--not-editor);
visibility: hidden;
}

/* box shadow adjusted from yin yang */
Expand Down Expand Up @@ -77,6 +78,22 @@ body:not(.plugin-sliding-panes-rotate-header):not(.is-mobile) .view-actions .vie
padding: 0 20px 0 16px;
}

/* Fix for Windows 10 missing close, minimize, maximize */
.titlebar-inner {
color: var(--text-faint);
}

.titlebar-button-container.mod-left {
visibility: hidden;
}

.titlebar-button.mod-minimize:hover,
.titlebar-button.mod-maximize:hover,
.titlebar-button.mod-close:hover {
background-color: var(--background-primary);
color: var(--text-normal);
}

// .view-actions a.view-action svg {
// height: 18px;
// width: 20px;
Expand Down
31 changes: 16 additions & 15 deletions scss/vendors/_plugins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Can do
color: var(--internal-buttons);
}

/* ==KEPANO'S HIDER */
// /* ==KEPANO'S HIDER */

/* Hide ribbon */

Expand Down Expand Up @@ -197,20 +197,21 @@ Can do
background-color: var(--background-primary);
}

/* Frameless */
.titlebar-button-container {
display: none;
background-color: var(--background-primary);
}

.titlebar,
.titlebar-inner {
position: fixed;
top: 0;
height: 12px;
background: transparent;
color: transparent;
}
/* Hides titlebar close, minimize, etc. on Windows */
// /* Frameless */
// .titlebar-button-container {
// display: none;
// background-color: var(--background-primary);
// }

// .titlebar,
// .titlebar-inner {
// position: fixed;
// top: 0;
// height: 12px;
// background: transparent;
// color: transparent;
// }

.workspace-split.mod-right-split > .workspace-tabs {
padding: 18px 0 8px 8px;
Expand Down

0 comments on commit a95f159

Please sign in to comment.