Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| xfce:xfce4-panel:theming [2013/01/10 10:56] – nick | xfce:xfce4-panel:theming [2024/12/11 11:29] (current) – kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Theming ====== | + | ~~NOTOC~~ |
| + | {{ : | ||
| + | ====== | ||
| - | Besize the appearance settings in the panel preferences, | + | * **[[#CSS Selectors|CSS Selectors]]** |
| + | * **[[#GTK3 Theme testing and debugging|GTK3 Theme testing and debugging]]** | ||
| + | * **[[# | ||
| + | * **[[#Plugin theming examples|Plugin theming examples]]** | ||
| - | ====== Classes ====== | + | ---- |
| - | ===== XfcePanelWindow | + | ===== CSS Selectors |
| - | The normal panel window. | + | |
| - | <file txt .gtkrc-2.0> | + | === Classes: === |
| - | style " | + | |
| - | { | + | |
| - | # Time in miliseconds before the panel will unhide on an enter event | + | |
| - | XfcePanelWindow:: | + | |
| - | # Time in miliseconds before the panel will hide on a leave event | + | .xfce4-panel |
| - | | + | |
| + | .tasklist | ||
| - | # Size of autohide window in pixels | + | === ID's: === |
| - | XfcePanelWindow:: | + | |
| - | } | + | |
| - | class " | + | |
| - | </ | + | |
| - | ===== XfcePanelWindowHidden | + | # |
| + | #XfcePanelWindowHidden | ||
| + | # | ||
| + | # | ||
| + | # | ||
| - | Class of the hidden | + | /* internal plugins */ |
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | #panel-tasklist-arrow | ||
| + | # | ||
| - | ===== XfcePanelWindowExternal ===== | + | /* some external plugins */ |
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| - | The class of the external window used for the 4.6 plugins. | + | === Elements === |
| - | ===== XfcePanelWindowWrapper ===== | + | wnck-pager |
| - | The class of the window used for external plugins running in the wrapper application. | + | ---- |
| - | ===== XfcePanelImage | + | ===== GTK3 Theme testing and debugging |
| - | Class of the images used on most of the panel plugins. | + | For testing, you can make modifications in the override file located at **~/ |
| - | <file txt .gtkrc-2.0> | + | mkdir -p ~/.config/gtk-3.0 |
| - | style " | + | |
| - | { | + | To see your modifications applied, you can reset the xfce4-panel process by typing the following command into a terminal: |
| - | # Fix the panel images | + | |
| - | # images below 32 pixels. You can for example use this when you have | + | xfce4-panel -r |
| - | # fuzzy launcher icons. | + | |
| - | | + | For debugging, you can use the [[https:// |
| - | } | + | |
| - | class "XfcePanelImage" | + | Quit the current xfce panel process: |
| - | </file> | + | |
| + | xfce4-panel -q | ||
| + | |||
| + | Start the panel process with GtkInspector debugging enabled (Note: This will load an inspector window for each individual panel plugin): | ||
| + | |||
| + | GTK_DEBUG=interactive xfce4-panel | ||
| + | |||
| + | [[|Back To Top]] | ||
| + | ---- | ||
| + | |||
| + | ===== Panelbar theming examples ===== | ||
| + | |||
| + | Panelbar background color. | ||
| + | |||
| + | .xfce4-panel .background { | ||
| + | background-color: | ||
| + | |||
| + | Panelbar vertical styling. | ||
| + | |||
| + | .xfce4-panel .vertical .background { | ||
| + | background-color: | ||
| + | |||
| + | Panelbar horizontal styling. | ||
| + | |||
| + | .xfce4-panel .horizontal .background { | ||
| + | background-color: | ||
| + | |||
| + | Make autohide panelbar transparent. | ||
| + | |||
| + | .xfce4-panel# | ||
| + | background: rgba(0, | ||
| + | |||
| + | [[|Back To Top]] | ||
| + | ---- | ||
| + | |||
| + | |||
| + | ===== Plugin theming examples ===== | ||
| + | |||
| + | Tasklist toggle button background colour, text color, and border radius. | ||
| + | |||
| + | .xfce4-panel .tasklist .toggle { | ||
| + | background-color: | ||
| + | color: black; | ||
| + | border-radius: | ||
| + | |||
| + | < | ||
| + | {{:xfce:xfce4-panel: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Whisker Menu panel button. | ||
| + | |||
| + | # | ||
| + | color: lightblue; | ||
| + | font-weight: | ||
| + | font-style: italic; } | ||
| + | |||
| + | |||
| + | < | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Pulseaudio menu mpris buttons. | ||
| + | |||
| + | | ||
| + | color: lightblue; | ||
| + | border-color: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | |||
| + | //The pulseaudio menu contains common GTK widgets such as a scale, trough, switch, and slider.// | ||
| + | |||
| + | Workspace switcher colours | ||
| + | |||
| + | wnck-pager: | ||
| + | background-color: | ||
| + | wnck-pager: | ||
| + | background-color: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | Underline active Workspace switcher button (Appearance: | ||
| + | |||
| + | | ||
| + | | ||
| + | font-size: 16px; | ||
| + | } | ||
| + | .xfce4-panel widget grid button.flat.toggle: | ||
| + | font-family: 'Sans Bold'; | ||
| + | font-size: 16px; | ||
| + | | ||
| + | padding: 10px; | ||
| + | | ||
| + | |||
| + | Clock colours and font style: | ||
| + | |||
| + | # | ||
| + | color: black; | ||
| + | font-style: italic; | ||
| + | background-color: | ||
| + | |||
| + | < | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | Notification Plugin panel button colours | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | color: black; } | ||
| + | |||
| + | < | ||
| + | {{:xfce:xfce4-panel: | ||
| + | </ | ||
| + | |||
| + | Status Notifier Plugin | ||
| + | |||
| + | #sn-button { | ||
| + | background-color: lightblue; } | ||
| + | |||
| + | < | ||
| + | {{: | ||
| + | </figure> | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| + | [[: | ||