I been messing with the css of the themes, but I don't know what I'm doing

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
adry
Level 1
Level 1
Posts: 3
Joined: Thu Apr 22, 2021 1:46 am

I been messing with the css of the themes, but I don't know what I'm doing

Post by adry »

Hi, well I just want a pitch black theme and I've been changing some values but now when I right click on any icon or when I click in another window the icon of the file turns black and with the black background the icon disappears completely.
Image
Image
that really bothers me, is there any documentation of how those css works?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
spamegg
Level 14
Level 14
Posts: 5104
Joined: Mon Oct 28, 2019 2:34 am
Contact:

Re: I been messing with the css of the themes, but I don't know what I'm doing

Post by spamegg »

You shouldn't do that. At least you should make a backup of those CSS files. I'm guessing you are referring to something like /usr/share/themes/Mint-Y/cinnamon/cinnamon.css

Generally speaking CSS is fairly complicated. If you don't already know some CSS yourself, you'd end up breaking a lot of things if you try to get the results you want by trial and error.

I'd suggest looking through the custom themes available in Themes/Add-remove. There are some darker themes there.
newlyminted7
Level 5
Level 5
Posts: 558
Joined: Sat Jan 02, 2021 4:44 pm

Re: I been messing with the css of the themes, but I don't know what I'm doing

Post by newlyminted7 »

I hacked away at a couple of themes recently and found that the majority of the success I had was from trial and error and looking through existing themes because I haven't been able to find a decent CSS reference or documentation page, either. Wasn't a very pleasant experience, but I eventually got the look I (mostly) wanted.

Not sure, but these might help you:
https://developer.gnome.org/gtk3/stable/theming.html
https://wiki.gnome.org/action/show/Proj ... FInspector
(from https://askubuntu.com/questions/68976/h ... nome-shell)
https://www.dedoimedo.com/computers/lin ... theme.html
adry
Level 1
Level 1
Posts: 3
Joined: Thu Apr 22, 2021 1:46 am

Re: I been messing with the css of the themes, but I don't know what I'm doing

Post by adry »

spamegg wrote: Thu Apr 22, 2021 2:46 pm You shouldn't do that. At least you should make a backup of those CSS files. I'm guessing you are referring to something like /usr/share/themes/Mint-Y/cinnamon/cinnamon.css

Generally speaking CSS is fairly complicated. If you don't already know some CSS yourself, you'd end up breaking a lot of things if you try to get the results you want by trial and error.

I'd suggest looking through the custom themes available in Themes/Add-remove. There are some darker themes there.
I'm editing a copy of one of the default themes so the default is untouched, I know CSS but its hard to know what I'm editing just by the names and classes of the elements.
Yes I know that there are dark themes but the ones that look good form me doesn't change the controls or the windows(I mean I don't get any new windows/controls to choose when I download the themes ) and they only change the panel.
Last edited by adry on Thu Apr 22, 2021 8:51 pm, edited 2 times in total.
adry
Level 1
Level 1
Posts: 3
Joined: Thu Apr 22, 2021 1:46 am

Re: I been messing with the css of the themes, but I don't know what I'm doing

Post by adry »

newlyminted7 wrote: Thu Apr 22, 2021 3:00 pm I hacked away at a couple of themes recently and found that the majority of the success I had was from trial and error and looking through existing themes because I haven't been able to find a decent CSS reference or documentation page, either. Wasn't a very pleasant experience, but I eventually got the look I (mostly) wanted.

Not sure, but these might help you:
https://developer.gnome.org/gtk3/stable/theming.html
https://wiki.gnome.org/action/show/Proj ... FInspector
(from https://askubuntu.com/questions/68976/h ... nome-shell)
https://www.dedoimedo.com/computers/lin ... theme.html
Hey thanks!!! I will check those links.
newlyminted7
Level 5
Level 5
Posts: 558
Joined: Sat Jan 02, 2021 4:44 pm

Re: I been messing with the css of the themes, but I don't know what I'm doing

Post by newlyminted7 »

You're welcome. Good luck, some of those themes are huge and complex, but it can be done.

And, not sure if you're interested, but I wrote a small shell script to toggle between a dark theme and a light theme (for day and night). I have it set up as a button in my Panel (via the Command Launcher applet) which just calls the shell script to toggle the theme.

Code: Select all

#!/bin/bash

# Get current theme
theme=$(gsettings get org.cinnamon.desktop.wm.preferences theme)
#echo "Current theme is $theme"

if [ $theme = "'Mint-Y'" ]; then
        #echo "Setting evening theme..."

        # Window borders:
        gsettings set org.cinnamon.desktop.wm.preferences theme "Mint-Y-Dark"
        # Icons:
        gsettings set org.gnome.desktop.interface icon-theme "Mint-Y-Dark-Aqua"
        # Controls:
        gsettings set org.cinnamon.desktop.interface gtk-theme "Arc-Dark"
        # Mouse pointer:
        #settings set org.cinnamon.desktop.interface cursor-theme 'DMZ-Black'
        # Desktop:
        gsettings set org.cinnamon.theme name "Arc-Dark"

        # Wallpaper:
        gsettings set org.cinnamon.desktop.background picture-uri 'file:///usr/share/backgrounds/linuxmint-ulyssa/echerkasski_countryside.jpg'
    else
        #echo "Setting daytime theme"

        # Window borders:
        gsettings set org.cinnamon.desktop.wm.preferences theme "Mint-Y"
        # Icons:
        gsettings set org.gnome.desktop.interface icon-theme "Mint-Y-Aqua"
        # Controls:
        gsettings set org.cinnamon.desktop.interface gtk-theme "Mint-Y-Aqua"
        # Mouse pointer:
        #settings set org.cinnamon.desktop.interface cursor-theme 'DMZ-Black'
        # Desktop:
        gsettings set org.cinnamon.theme name "Mint-X-Aqua"

        # Wallpaper:
        gsettings set org.cinnamon.desktop.background picture-uri 'file:///usr/share/backgrounds/linuxmint-ulyana/aandrews_tree.jpg'
    fi
Locked

Return to “Beginner Questions”