Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
xfce:xfce4-panel:theming [2012/01/04 10:13] – [Classes] nick | xfce:xfce4-panel:theming [2023/08/26 11:43] – [Panelbar theming examples] See https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/785 gael | ||
---|---|---|---|
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. | + | |
- | <file txt .gtkrc-2.0> | + | ===== CSS Selectors ===== |
- | 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 | + | === Classes: === |
- | XfcePanelWindow:: | + | |
- | | + | .xfce4-panel |
- | | + | .panel |
- | } | + | .tasklist |
- | class "XfcePanelWindow" style " | + | |
- | </file> | + | === ID's: === |
+ | |||
+ | | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | |||
+ | === Elements === | ||
+ | |||
+ | wnck-pager | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== GTK3 Theme testing and debugging ===== | ||
+ | |||
+ | For testing, you can make modifications | ||
+ | |||
+ | 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 | ||
+ | |||
+ | .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: | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Whisker Menu panel button. | ||
+ | |||
+ | # | ||
+ | color: lightblue; | ||
+ | font-weight: | ||
+ | font-style: italic; } | ||
+ | |||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | Pulseaudio menu mpris buttons. | ||
+ | |||
+ | #pulseaudio-button menu .linked button { | ||
+ | color: lightblue; | ||
+ | border-color: gray; } /* This will apply a colour to the mpris button border */ | ||
+ | |||
+ | <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: | ||
+ | |||
+ | < | ||
+ | |||
+ | Notification Plugin panel button colours | ||
+ | |||
+ | # | ||
+ | background-color: | ||
+ | color: black; } | ||
+ | |||
+ | <figure " | ||
+ | |||
+ | Status Notifier Plugin | ||
+ | |||
+ | #sn-button { | ||
+ | background-color: | ||
+ | |||
+ | <figure " | ||
+ | |||
+ | [[|Back to Top]] | ||
+ | ---- | ||
+ | [[: |