Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| xfce:xfce4-panel:4.14:theming [2019/08/19 10:52] – created kevinbowen | xfce:xfce4-panel:4.14:theming [2019/08/25 03:03] (current) – [Plugin theming examples] making a minor correction emh_mark_i | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Theming ====== | + | ====== |
| - | <note warning> | + | ---- |
| - | Besize the appearance settings in the panel preferences, | + | ===== CSS Selectors ===== |
| - | ===== Classes | + | === Classes: === |
| - | ===== XfcePanelWindow ===== | + | .xfce4-panel |
| - | The normal | + | |
| - | <file txt .gtkrc-2.0> | + | === ID's: === |
| - | style " | + | |
| - | { | + | |
| - | # Time in miliseconds before the panel will unhide on an enter event | + | |
| - | XfcePanelWindow:: | + | |
| - | | + | |
| - | | + | # |
| + | # | ||
| + | # | ||
| + | #clock-button | ||
| - | # Size of autohide window in pixels | + | === Elements === |
| - | XfcePanelWindow:: | + | |
| - | } | + | |
| - | class " | + | |
| - | </ | + | |
| - | ===== XfcePanelWindowHidden ===== | + | wnck-pager |
| - | Class of the hidden panel window. | + | ---- |
| - | ===== XfcePanelWindowExternal | + | ===== GTK3 Theme testing and debugging |
| - | The class of the external window used for the 4.6 plugins. | + | For testing, you can make modifications in the override file located at **~/.config/ |
| - | ===== XfcePanelWindowWrapper ===== | + | mkdir -p ~/ |
| - | The class of the window used for external plugins running in the wrapper application. | + | To see your modifications applied, you can reset the xfce4-panel process by typing |
| - | ===== XfcePanelImage ===== | + | xfce4-panel -r |
| - | Class of the images used on most of the panel plugins. | + | For debugging, you can use the [[https:// |
| - | <file txt .gtkrc-2.0> | + | Kill the current xfce panel process: |
| - | style " | + | |
| - | { | + | pkill xfce4-panel |
| - | | + | |
| - | # images below 32 pixels. You can for example use this when you have | + | Start the panel process with GtkInspector debugging enabled: |
| - | # fuzzy launcher icons. | + | |
| - | | + | GTK_DEBUG=interactive xfce4-panel |
| - | } | + | |
| - | class "XfcePanelImage" | + | ---- |
| - | </file> | + | |
| + | ===== Plugin theming examples ===== | ||
| + | |||
| + | Panelbar background color. | ||
| + | |||
| + | .xfce4-panel.background { | ||
| + | background-color: | ||
| + | |||
| + | Tasklist toggle button background colour, text color, and border radius. | ||
| + | |||
| + | .tasklist .toggle { | ||
| + | background-color: | ||
| + | color: black; | ||
| + | border-radius: | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | Whisker Menu panel button. | ||
| + | |||
| + | # | ||
| + | color: lightblue; | ||
| + | font-weight: | ||
| + | font-style: italic; } | ||
| + | |||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | Pulseaudio menu mpris buttons. | ||
| + | |||
| + | # | ||
| + | | ||
| + | border-color: | ||
| + | |||
| + | <figure " | ||
| + | |||
| + | |||
| + | //The pulseaudio menu contains common GTK widgets such as a scale, trough, switch, and slider.// | ||
| + | |||
| + | Workspace switcher colours for selected and hover states. | ||
| + | |||
| + | wnck-pager:selected { | ||
| + | background-color: lightblue; } | ||
| + | wnck-pager:hover { | ||
| + | | ||
| + | |||
| + | < | ||
| + | |||
| + | Clock colours and font style: | ||
| + | |||
| + | #clock-button { | ||
| + | color: black; | ||
| + | font-style: italic; | ||
| + | | ||
| + | |||
| + | <figure " | ||