path: root/theme-format.txt
diff options
authorHavoc Pennington <>2002-08-04 20:02:45 +0000
committerHavoc Pennington <>2002-08-04 20:02:45 +0000
commit583596178ff110e80bfd41a7ed1c2fb5a062ad9f (patch)
treecfb2b2f7ced68fbd07f99ae174db57b7f420e46f /theme-format.txt
parentae148bc89f71b796f078a08228f095800c787e9f (diff)
use MetaMenuIconType not button type for the size of the menu ops array
2002-08-04 Havoc Pennington <> * src/theme.c (free_menu_ops): use MetaMenuIconType not button type for the size of the menu ops array (meta_theme_define_int_constant): return TRUE on success (how the heck did this ever work?) (meta_theme_define_float_constant): return TRUE on success (meta_frame_style_validate): allow the "positional" buttons to be omitted for now. * src/testgradient.c (render_multi): don't define N_COLORS twice * src/theme-viewer.c (run_theme_benchmark): don't define ITERATIONS twice * src/theme.c (button_rect): handle new button types (meta_button_type_to_string): update (meta_button_type_from_string): update * src/theme.h (enum): add button types for the 6 possible button positions. No way to reposition buttons still but this will allow themes to go ahead and support doing so.
Diffstat (limited to 'theme-format.txt')
1 files changed, 10 insertions, 2 deletions
diff --git a/theme-format.txt b/theme-format.txt
index dc8f39c..1e9604a 100644
--- a/theme-format.txt
+++ b/theme-format.txt
@@ -173,9 +173,17 @@ Themes are in a simple XML-subset format.
<!-- For buttons, drawing methods have to be provided for
each of three states:
normal, pressed, prelight
- and the button name must be provided:
- close, maximize, minimize, menu
+ and the button function or position must be provided:
+ close, maximize, minimize, menu,
+ left_left_background, left_middle_background,
+ left_right_background, right_left_background,
+ right_middle_background, right_right_background
So a working theme needs 3*4 = 12 button declarations
+ and a theme may have up to 3*10 = 30 button declarations
+ in order to handle button-rearrangement preferences.
+ (The name "function" for the attribute is from before the
+ background values existed.)
<button function="close" state="normal" draw_ops="previously_named"/>