Skip to content

Commit

Permalink
The problem with the gtk-2.0/gtk-3.0, firefox bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuty committed Apr 20, 2024
1 parent 69d9fab commit 8828734
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
17 changes: 9 additions & 8 deletions src/gtk-3.0.css
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
/** default */
headerbar button.close > * {
background-image: url("./assets/titlebutton-close-dark.png");
}

headerbar button.close:hover > * {
headerbar button.close > *:hover, headerbar button.close:hover > * {
background-image: url("./assets/titlebutton-close-hover-dark.png");
}

headerbar button.minimize > * {
background-image: url("./assets/titlebutton-minimize-dark.png");
}

headerbar button.minimize:hover > * {
headerbar button.minimize > *:hover, headerbar button.minimize:hover > * {
background-image: url("./assets/titlebutton-minimize-hover-dark.png");
}

headerbar button.maximize > * {
background-image: url("./assets/titlebutton-maximize-dark.png");
}

headerbar button.maximize:hover > * {
headerbar button.maximize > *:hover, headerbar button.maximize:hover > * {
background-image: url("./assets/titlebutton-maximize-hover-dark.png");
}

headerbar:backdrop button.minimize > *, headerbar:backdrop button.maximize > *, headerbar:backdrop button.close > * {
headerbar:backdrop button.minimize > *, headerbar:backdrop button.maximize > *, headerbar:backdrop button.close > *, headerbar button.minimize > *:backdrop, headerbar button.maximize > *:backdrop, headerbar button.close > *:backdrop {
background-image: url("./assets/titlebutton-backdrop.png");
}

Expand All @@ -40,7 +41,7 @@ headerbar button.minimize, headerbar button.maximize, headerbar button.close {
margin-right: -1.5px;
}

headerbar > windowhandle > box {
margin-right: 5px;
margin-left: 5px;
}
headerbar > windowhandle > box, headerbar > box {
padding-right: 5px;
padding-left: 5px;
}
8 changes: 4 additions & 4 deletions src/gtk-4.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ headerbar button.minimize, headerbar button.maximize, headerbar button.close {
margin-right: 2.5px;
}

headerbar > windowhandle > box {
margin-right: 5px;
margin-left: 5px;
}
headerbar > windowhandle > box, headerbar > box {
padding-right: 10px;
padding-left: 10px;
}

0 comments on commit 8828734

Please sign in to comment.