Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| xfce:xfce4-panel:theming [2012/01/04 10:09] – created 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 | + | |
| - | ! The normal panel window. | + | |
| - | ? XfcePanelWindowHidden | + | |
| - | ! Class of the hidden panel window. | + | |
| - | ? | + | |
| - | ! The class of the external window used for the 4.6 plugins. | + | |
| - | ? XfcePanelWindowWrapper | + | |
| - | ! The class of the window used for external plugins running in the wrapper application. | + | |
| + | ===== CSS Selectors ===== | ||
| + | |||
| + | === Classes: === | ||
| + | |||
| + | .xfce4-panel | ||
| + | .panel | ||
| + | .tasklist | ||
| + | |||
| + | === ID's: === | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | /* internal plugins */ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | #sn-button | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | /* some external plugins */ | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | === Elements === | ||
| + | |||
| + | wnck-pager | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== GTK3 Theme testing and debugging ===== | ||
| + | |||
| + | For testing, you can make modifications in the override file located at **~/ | ||
| + | |||
| + | mkdir -p ~/ | ||
| + | |||
| + | To see your modifications applied, you can reset the xfce4-panel process by typing the following command into a terminal: | ||
| + | |||
| + | xfce4-panel -r | ||
| + | |||
| + | For debugging, you can use the [[https:// | ||
| + | |||
| + | Quit the current xfce panel process: | ||
| + | |||
| + | 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: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Whisker Menu panel button. | ||
| + | |||
| + | # | ||
| + | color: lightblue; | ||
| + | font-weight: | ||
| + | font-style: italic; } | ||
| + | |||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | |||
| + | 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 for selected and hover states (Appearance: | ||
| + | |||
| + | wnck-pager: | ||
| + | background-color: | ||
| + | wnck-pager: | ||
| + | background-color: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | Underline active Workspace switcher button (Appearance: | ||
| + | |||
| + | .xfce4-panel widget grid button.flat.toggle: | ||
| + | font-family: | ||
| + | font-size: 16px; | ||
| + | } | ||
| + | .xfce4-panel widget grid button.flat.toggle: | ||
| + | font-family: | ||
| + | font-size: 16px; | ||
| + | border-bottom: | ||
| + | padding: 10px; | ||
| + | } | ||
| + | |||
| + | Clock colours and font style: | ||
| + | |||
| + | # | ||
| + | color: black; | ||
| + | font-style: italic; | ||
| + | background-color: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | Notification Plugin panel button colours | ||
| + | |||
| + | # | ||
| + | background-color: | ||
| + | color: black; } | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | Status Notifier Plugin | ||
| + | |||
| + | #sn-button { | ||
| + | background-color: | ||
| + | |||
| + | <figure " | ||
| + | {{: | ||
| + | </ | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| + | [[: | ||