Skip to content

Instantly share code, notes, and snippets.

@Toxblh
Last active October 17, 2024 15:48
Show Gist options
  • Save Toxblh/41985b58098ac246046508cef8ceee43 to your computer and use it in GitHub Desktop.
Save Toxblh/41985b58098ac246046508cef8ceee43 to your computer and use it in GitHub Desktop.
MacOS like style for GTK3 and GTK4 window actions. Download and move to ~/.config/gtk-4.0/gtk.css
windowcontrols >* {
transition: all 0.1s;
}
windowcontrols > .close {
margin-left: -6px;
}
windowcontrols > .minimize {
margin-left: -6px;
}
windowcontrols > .maximize {
margin-left: -6px;
}
windowcontrols > .close > image {
transform: scale(0.7);
color: rgba(115, 0, 0, 0);
background-color: #ff5f57;
border: solid 0.5px #e34239;
}
windowcontrols > .minimize > image {
transform: scale(0.7);
color: rgba(152, 86, 0, 0);
background-color: #febb2e;
border: solid 0.5px #e19d1a;
}
windowcontrols > .maximize > image {
transform: scale(0.7);
color: rgba(0, 98, 0, 0);
background-color: #2bc840;
border: solid 0.5px #1da922;
}
windowcontrols:Hover > .close > image {
color: rgba(115, 0, 0, 1);
}
windowcontrols:Hover > .minimize > image {
color: rgba(152, 86, 0, 1);
}
windowcontrols:Hover > .maximize > image {
color: rgba(0, 98, 0, 1);
}
@Toxblh
Copy link
Author

Toxblh commented Oct 17, 2024

2024-10-17.16-45-16.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment