Skip to content

Commit

Permalink
Windows tweaks
Browse files Browse the repository at this point in the history
Positioned window controls
tweaked margins and paddings
fixed private window indicator

Hopefully fix some of the bizzare issues in #13
  • Loading branch information
artsyfriedchicken committed Mar 27, 2024
1 parent 8d2be23 commit 7718ef9
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
32 changes: 29 additions & 3 deletions chrome/EdgyArc-fr/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
#private-browsing-indicator-with-label {
display: none !important;
}

#nav-bar::after {
content: var(--uc-string-private);
display: flex;
Expand All @@ -73,7 +74,9 @@
opacity: 0.6;
position: absolute;
top: calc(50% - 10px);
pointer-events: none !important;
}

@media (-moz-platform: macos) {
/*make space in nav bar for the private window label*/
#nav-bar {
Expand All @@ -87,17 +90,20 @@
}
@media (-moz-platform: windows) {
#nav-bar {
padding-right: 215px !important;
padding-left: 70px !important;
}

/*create private window badge*/
#nav-bar::after {
right: 145px;
left: 8px;
border-radius: 4px;
}
}
}




:root[windowtype="navigator:browser"],
:root[windowtype="navigator:browser"]:not(:-moz-lwtheme) {
background-color: color-mix(in srgb, var(--lwt-accent-color) 60%, light-dark(rgb(240, 240, 240), rgb(50, 50, 50))) !important;
Expand Down Expand Up @@ -428,4 +434,24 @@
padding-inline-start: 0 !important;
}
}
}
}


/*Windows specific positioning*/

@media (-moz-platform: windows) {
.titlebar-buttonbox-container {
z-index:999 !important;
}
.titlebar-button.titlebar-restore,
.titlebar-button.titlebar-close,
.titlebar-button.titlebar-min,
.titlebar-button.titlebar-max,
.titlebar-button.titlebar-button,
.titlebar-button {
padding: 0 15px !important;
height: 32px !important;
border-radius: 6px !important;
margin: 6px 4px !important;
}
}
7 changes: 7 additions & 0 deletions chrome/EdgyArc-fr/translucent-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,17 @@
opacity: var(--uc-accent-opacity) !important;
}

@media (-moz-platform: macos) {
:root[windowtype="navigator:browser"]#main-window {
background-color: transparent !important;
border-radius: 10px !important;
}
}
@media (-moz-platform: windows) {
:root[windowtype="navigator:browser"]#main-window {
background-color: var(--lwt-accent-color) !important;
}
}

/*remove transparency in fullscreen */
:root[sizemode="fullscreen"] {
Expand Down

0 comments on commit 7718ef9

Please sign in to comment.