Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
xfce:xfce4-panel:theming [2020/10/14 20:17] emh_mark_ixfce:xfce4-panel:theming [2024/12/11 11:29] (current) kevinbowen
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-{{ :xfce:xfce4-panel:xfce4-panel.png?nolink|}} +{{ :xfce:xfce4-panel.png?nolink|}} 
-====== Xfce 4.14 Panelbar Theming ======+====== xfce4-panel - Panelbar Theming ======
  
 +  * **[[#CSS Selectors|CSS Selectors]]**
 +  * **[[#GTK3 Theme testing and debugging|GTK3 Theme testing and debugging]]**
 +  * **[[#Panelbar theming examples|Panelbar theming examples]]**
   * **[[#Plugin theming examples|Plugin theming examples]]**   * **[[#Plugin theming examples|Plugin theming examples]]**
 +
 +----
  
 ===== CSS Selectors ===== ===== CSS Selectors =====
Line 16: Line 21:
  
     #XfcePanelWindow     #XfcePanelWindow
 +    #XfcePanelWindowHidden
 +    #XfcePanelWindowWrapper
 +    #xfce-panel-button
 +    #xfce-panel-toggle-button
 +
 +    /* internal plugins */
 +    #actions-button
 +    #applicationmenu-button
 +    #clock-button
 +    #directorymenu-button
 +    #launcher-button
 +    #launcher-arrow
 +    #showdesktop-button
 +    #sn-button
 +    #sn-button-box
 +    #panel-tasklist-arrow
 +    #windowmenu-button
 +
 +    /* some external plugins */
     #whiskermenu-button     #whiskermenu-button
     #xfce4-notification-plugin     #xfce4-notification-plugin
     #xfce4-power-manager-plugin     #xfce4-power-manager-plugin
     #pulseaudio-button     #pulseaudio-button
-    #clock-button 
-    #indicator-button 
-    #sn-button 
-    #showdesktop-button 
-     
  
 === Elements === === Elements ===
Line 52: Line 71:
     GTK_DEBUG=interactive xfce4-panel     GTK_DEBUG=interactive xfce4-panel
  
 +[[|Back To Top]]
 ---- ----
  
Line 70: Line 90:
     .xfce4-panel .horizontal .background {     .xfce4-panel .horizontal .background {
       background-color: rgba(36, 36, 36, 0.8); }       background-color: rgba(36, 36, 36, 0.8); }
 +
 +Make autohide panelbar transparent.
 +
 +    .xfce4-panel#XfcePanelWindowHidden {
 +      background: rgba(0,0,0,0); }
 +
 +[[|Back To Top]]
 +----
 +
  
 ===== Plugin theming examples ===== ===== Plugin theming examples =====
Line 80: Line 109:
       border-radius: 3px; }       border-radius: 3px; }
  
-<figure "Panelbar tasklist button">{{:xfce:xfce4-panel:4.14:tasklist_button.png}}</figure>+<figure "Panelbar Tasklist Button"> 
 +{{:xfce:xfce4-panel:tasklist_button.png|Panelbar Tasklist Button}} 
 +</figure>
  
  
Line 91: Line 122:
  
  
-<figure "Whisker Menu panel button">{{:xfce:xfce4-panel:4.14:whiskermenu_button.png}}</figure>+<figure "Whisker Menu Panel Button"> 
 +{{:xfce:xfce4-panel:whiskermenu_button.png|Whisker Menu Panel Button}} 
 +</figure>
  
  
Line 100: Line 133:
       border-color: gray; }  /* This will apply a colour to the mpris button border */       border-color: gray; }  /* This will apply a colour to the mpris button border */
  
-<figure "Pulseaudio menu MPRIS buttons">{{:xfce:xfce4-panel:4.14:pulseaudio_menu.png}}</figure>+<figure "Pulseaudio Menu MPRIS Buttons"> 
 +{{:xfce:xfce4-panel:pulseaudio_menu.png|Pulseaudio Menu MPRIS Buttons}} 
 +</figure>
  
  
 //The pulseaudio menu contains common GTK widgets such as a scale, trough, switch, and slider.// //The pulseaudio menu contains common GTK widgets such as a scale, trough, switch, and slider.//
  
-Workspace switcher colours for selected and hover states.+Workspace switcher colours for selected and hover states (Appearance: miniature view).
  
     wnck-pager:selected {     wnck-pager:selected {
Line 112: Line 147:
       background-color: gray; }       background-color: gray; }
  
-<figure "Panelbar workspace switcher">{{:xfce:xfce4-panel:4.14:workspace_switcher.png}}</figure>+<figure "Panelbar Workspace Switcher"> 
 +{{:xfce:xfce4-panel:workspace_switcher.png|Panelbar Workspace Switcher}} 
 +</figure> 
 + 
 +Underline active Workspace switcher button (Appearance: buttons) 
 + 
 +    .xfce4-panel widget grid button.flat.toggle:hover {  
 +      font-family: 'Sans Bold';  
 +      font-size: 16px; 
 +    } 
 +    .xfce4-panel widget grid button.flat.toggle:checked {  
 +      font-family: 'Sans Bold'; 
 +      font-size: 16px; 
 +      border-bottom: 5px solid purple; 
 +      padding: 10px; 
 +    }
  
 Clock colours and font style: Clock colours and font style:
Line 121: Line 171:
       background-color: lightblue; }       background-color: lightblue; }
  
-<figure "Panelbar Clock">{{:xfce:xfce4-panel:4.14:clock.png}}</figure>+<figure "Panelbar Clock"> 
 +{{:xfce:xfce4-panel:clock.png|Panelbar Clock}} 
 +</figure>
  
 Notification Plugin panel button colours Notification Plugin panel button colours
Line 129: Line 181:
       color: black; }       color: black; }
  
-<figure "Notification Plugin">{{:xfce:xfce4-panel:4.14:notification_plugin.png}}</figure>+<figure "Notification Plugin"> 
 +{{:xfce:xfce4-panel:notification_plugin.png|Notification Plugin}} 
 +</figure>
  
 Status Notifier Plugin Status Notifier Plugin
Line 136: Line 190:
       background-color: lightblue; }       background-color: lightblue; }
  
-<figure "Status Notifier">{{:xfce:xfce4-panel:4.14:status_notifier_plugin.png}}</figure>+<figure "Status Notifier"> 
 +{{:xfce:xfce4-panel:status_notifier_plugin.png|Status Notifier}} 
 +</figure>
  
 [[|Back to Top]] [[|Back to Top]]
 ---- ----
-[[:xfce:xfce4-panel:start:|Back to xfce4-panel main page]]+[[:xfce:xfce4-panel:start:|Return to xfce4-panel Main Documentation Page]]