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
Next revisionBoth sides next revision
dev:hig:panel-plugins [2012/05/09 15:45] – [Monitor] andrzejrdev:hig:panel-plugins [2012/06/03 19:06] – [Size] mike
Line 68: Line 68:
 Labels should be oriented horizontally in the horizontal and deskbar mode and vertically (rotated clockwise) in the vertical mode. Labels should be oriented horizontally in the horizontal and deskbar mode and vertically (rotated clockwise) in the vertical mode.
  
-(RFC) For consistency with orther panel plugins and for good aligning of plugins in the panel, I'd suggest aligning all labels to the left edge of the plugin, or icon, if present. Currently many plugins center their labels, which looks poorly in the deskbar mode, or if multiple rows are used in other modes.+(RFC) For consistency with other panel plugins and for good aligning of plugins in the panel, I'd suggest aligning all labels to the left edge of the plugin, or icon, if present. Currently many plugins center their labels, which looks poorly in the deskbar mode, or if multiple rows are used in other modes.
  
 If plugin displays multiple rows of labels, it should preserve their native spacing (e.g. vbox with labels should be wrapped with a GtkAdjustment widget to prevent expanding the box). If plugin displays multiple rows of labels, it should preserve their native spacing (e.g. vbox with labels should be wrapped with a GtkAdjustment widget to prevent expanding the box).
Line 114: Line 114:
 ===== Panel properties ===== ===== Panel properties =====
  
-==== mode ====+==== Mode ====
  
-The panel (starting with 4.10) has modes : horizontal, vertical and deskbar. A plugin should layout its widgets following those rules : +The panel has three modes: horizontal, verticaland deskbar.
-  * use a vertical XfceHVBox if the panel is in vertical or deskbar mode, horizontal otherwise. +
-  * labels should be oriented vertically (using ''gtk_label_set_angle()'') in vertical mode. +
-  * progressbars should be oriented vertically in horizontal mode, horizontally otherwise.+
  
-==== size ==== +=== Horizontal mode === 
-Plugins should be tested to still render fine in all panel sizes, starting from 16px to 40px at least.+  * Widgets are placed horizontally 
 +  * Progressbars are placed vertically
  
-The exception is a deskbar mode - it should look good when: +=== Vertical mode === 
-  * a single row is used - in such a case plugins should resort to displaying icons only. Plugins which must display text or input fields are exempt from this requirement. +  * Widgets are placed vertically 
-  * look "reasonable" (look good but potentially skipping or clipping some labels) with number of rows equal to 3 and row size equal to 22px.+  * Labels are rotated to 90 degrees 
 +  * Progressbars are placed horizontally
  
 +=== Deskbar mode ===
 +  * Widgets are placed vertically
 +  * Composited widgets can be packed horizontally
 +  * Labels are not rotated
 +  * Progressbars are placed horizontally
 +
 +==== Size ====
 +
 +Two category of sizes can be distinguished for the panel: small and large size.
 +
 +=== Padding ===
 +
 +  * Plugins that include a padding have to stick to 1px for a size < 28px and 2px otherwise.
 +  * When displaying a frame around the plugin, the padding has to be 0px for a size of < 28px and 1px otherwise.
 ==== number of rows ==== ==== number of rows ====