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
panel-ui-guidelines [2007/12/16 08:43] – irc chat to wiki markup ongardiepanel-ui-guidelines [2007/12/16 18:02] – Nick: "it's GtkWidget->style" ongardie
Line 9: Line 9:
 New guidelines should be submitted as a draft at the bottom of the page, in the "Draft Guidelines" section. Once all the core plugins follow the guideline (in trunk), the guideline may be promoted to the "Mature Guidelines" section of the page. Promoting drafts prematurely will only result in weakening the value of this document, so please refrain from doing so. New guidelines should be submitted as a draft at the bottom of the page, in the "Draft Guidelines" section. Once all the core plugins follow the guideline (in trunk), the guideline may be promoted to the "Mature Guidelines" section of the page. Promoting drafts prematurely will only result in weakening the value of this document, so please refrain from doing so.
  
-===== Plugin Categories ===== +===== Plugin Classes ===== 
-Most guidelines apply differently based on the plugin category. These categories are specified here: (need screenshots, names, examples, and better descriptions)+Most guidelines apply differently based on the plugin class. ("Class" here means bin or category - it is not used in the GObject sense). These classes are specified here: (need screenshots, examples, and better descriptions)
  
-==== #1 ==== +==== Class B: Button ==== 
-the [image label] with menu plugins should be one category+<file>Button with [image label], [image] or [label]</file> 
 + 
 +sometimes opening a menu 
 + 
 +examples: menu, places, launcher, window list, ... 
 + 
 +==== Class I: Input ==== 
 +<file>Button with [image] [input field]</file> 
 + 
 +database queries, command execution, etc from the panel 
 + 
 +examples: verve, dict(ionary) 
 + 
 +==== Class M: Monitor ==== 
 +<file>[image] [label] [meter] [value reading]</file>
  
-==== #2 ==== 
 the resource monitoring ones the resource monitoring ones
  
-==== #3 ==== +examples: system load monitor, battery monitor
-the strictly [image] buttons that launch stuff+
  
-==== #4 ==== +==== Class G: Grid ==== 
-some strange monsters like the pager+<file>array of buttons with [image] or [label] or [image label]</file> 
 + 
 +examples: icon box, task list, system tray 
 + 
 +==== Class O: Other ==== 
 +examples: pager, xfapplet
  
 ===== Mature Guidelines ===== ===== Mature Guidelines =====
Line 29: Line 46:
  
 ===== Draft Guidelines ===== ===== Draft Guidelines =====
 +
  
  
Line 37: Line 55:
 === Display an image inside a button === === Display an image inside a button ===
   * Plugins using it: //launcher (xfce4-panel)//   * Plugins using it: //launcher (xfce4-panel)//
-  * Set the size of the image to:\\ ''%%size of button - MAX (GtkButton->style->xthickness, GtkButton->style->ythickness)%%''+  * Set the size of the image to:\\ ''%%size of button - MAX (GtkWidget->style->xthickness, GtkWidget->style->ythickness)%%''
  
 === Display a label === === Display a label ===