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:tasklist [2022/12/05 16:42] – [Style Properties] gaelxfce:xfce4-panel:tasklist [2025/02/06 17:03] (current) – Add separator gael
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
-{{ :xfce:xfce.panel.png?no link|}}+{{ :xfce:xfce4-panel.png?nolink|}}
 ====== xfce4-panel - Window Buttons ====== ====== xfce4-panel - Window Buttons ======
  
Line 7: Line 7:
 ===== Properties ===== ===== Properties =====
  
-<figure "Window button'properties dialog"> +<figure "Window button'Properties Dialog"> 
-{{:xfce:xfce4-panel:tasklist.png?nolink&|}}+{{:xfce:xfce4-panel:tasklist.png?nolink&|Window Button's Properties Dialog Window}}
 </figure> </figure>
  
Line 15: Line 15:
 ===== Style Properties ===== ===== Style Properties =====
  
-You can set a custom icon size in gtk-icon-sizes with the name ''panel-tasklist-menu''. The default icon size is 16px.+<note classic>Do not expect max-button-length, min-button-length and max-button-size to really work as intended before 4.19.4: see https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/683.</note>
  
 <file txt ~/.config/gtk-3.0/gtk.css> <file txt ~/.config/gtk-3.0/gtk.css>
-The maximum length of a button before the label ellipsizes. +/* The maximum length of a button before the label ellipsizes. 
-When this value is set to -1 the button will expand to the +   When this value is set to -1 the button will expand to the 
-entire available space. +   entire available space. *
-* { -XfceTasklist-max-button-length: 200; }+.tasklist { 
 +  -XfceTasklist-max-button-length: 200; 
 +}
  
-# Ellipsizing used in the task list and overflow menu labels. +/* The minimum length of a button, even if the label is smaller. *
-* { -XfceTasklist-ellipsize-modePANGO_ELLIPSIZE_END; }+.tasklist { 
 +  -XfceTasklist-min-button-length50; 
 +}
  
-Lucency of minimized icons. Valid values are between 0 (completely +/* The maximum size controls the number of lines on which 
-hide the icon) and 100 (don't lighten the icon). +   buttons rearrange themselves: panel-size / max-button-size. 
-* { -XfceTasklist-minimized-icon-lucency: 50; }+   So the button size can actually be up to 2 * max-button-size. 
 +   When this value is set to -1 there is no maximum size. */ 
 +.tasklist {  
 +  -XfceTasklist-max-button-size: 32; 
 +
 + 
 +/* Ellipsizing used in the task list and overflow menu labels. */ 
 +.tasklist { 
 +  -XfceTasklist-ellipsize-mode: PANGO_ELLIPSIZE_END; 
 +
 + 
 +/* Lucency of minimized icons. Valid values are between 0 (completely 
 +  hide the icon) and 100 (don't lighten the icon). *
 +.tasklist  
 +  -XfceTasklist-minimized-icon-lucency: 50; 
 +
 + 
 +/* Maximum number of characters in the menu label before it will 
 +   be ellipsized. When this value is set to -1, the width will be 
 +   calculated automatically. */ 
 +.tasklist { 
 +  -XfceTasklist-menu-max-width-chars: 24; 
 +
 +</file> 
 + 
 +---- 
 + 
 +===== Theming Examples ===== 
 + 
 +<file txt ~/.config/gtk-3.0/gtk.css> 
 +/* window button font color */ 
 +/* NORMAL */ 
 +.tasklist button { 
 +    color: #ffffff; 
 +
 +/* PRELIGHT */ 
 +.tasklist button:hover { 
 +    color: #ffffff; 
 +
 +/* ACTIVE - only while being clicked */ 
 +.tasklist button:active { 
 +    color: #000000; 
 +
 +/* SELECTED */ 
 +.tasklist button:checked { 
 +    color: #000000; 
 +
 + 
 +/* icon text not truncated */ 
 +XfdesktopIconView.view { 
 +   -XfdesktopIconView-ellipsize-icon-labels: 0; 
 +}
  
-# Maximum number of characters in the menu label before it will 
-# be ellipsized. 
-* { -XfceTasklist-menu-max-width-chars: 24; } 
 </file> </file>
  
Line 39: Line 91:
 [[|Back To Top]] [[|Back To Top]]
 ---- ----
-[[ :xfce:xfce4-panel:start:|Return to Main Xfce4-panel page]]+[[:xfce:xfce4-panel:start:|Return to xfce4-panel Main Documentation Page]]