Skip to content

Customizing appearance

Pedro Ferreira edited this page Oct 14, 2023 · 3 revisions

Styling

By default the program will use the style.css file, placed in your nwg-panel config directory. You may use a different file by adding the -s |--style argument:

nwg-panel -s my_style.css

If you specify the css-name value for a certain item in the config file, you can use it as #my-name in the css style sheet like this:

/* Sample executor-weather uses "css-name": "weather" */
#weather {
    font-size: 16px
}

There are CSS names for the left, center and right side widget containers: left-box, center-box and right-box, which are placed inside panel-top and panel-bottom.

Take a look at comments in the default style.css file to learn more.

Icons

It is not a common practice to put images into the config directory. But this project is all about icons! I didn't want to make you deal with sudo-protected paths, nor place the resources you're likely to want to change on another path inside $HOME.

On first run the basic light, dark and color (weather only) icon sets will be copied to your config dir. Most part of them is based on symbolic icons from my favourite Papirus icon theme. You may freely replace each one with your own under the same name. Also you can delete each own icon, and the program will restore the default icon on next run.

Clone this wiki locally