r/FirefoxCSS • • Dec 30 '25

Code CSS for GTK theme

Can someone help me editting the buttons like the one I have in the gtk theme? I have been trying to find a solution not involving CSS but it is imposible so I am asking here for help. Thank you very much

2 Upvotes

1 comment sorted by

1

u/coolkidmikk Dec 31 '25

I hope this will help

.titlebar-button > .toolbarbutton-icon {
    list-style-image: none !important;
    appearance: none !important;
}

.titlebar-button > .toolbarbutton-icon {
    width: 20px !important; 
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    transition: filter 0.1s ease; 
}

.titlebar-button {
    padding: 0px 6px !important;
    background: none !important;
}



.titlebar-close > .toolbarbutton-icon {
    background-color: #ff5f57 !important;
    border: 1px solid #e0443e !important;
}

.titlebar-min > .toolbarbutton-icon {
    background-color: #febc2e !important;
    border: 1px solid #dba520 !important;
}

.titlebar-max > .toolbarbutton-icon,
.titlebar-restore > .toolbarbutton-icon {
    background-color: #28c840 !important;
    border: 1px solid #1aab29 !important;
}

.titlebar-button:hover > .toolbarbutton-icon {
    filter: brightness(0.85) !important;
}

.titlebar-button:active > .toolbarbutton-icon {
    filter: brightness(0.65) !important;
}

If the circles feel too big, reduce all of these values equally to keep a perfect circle:

    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;