- READ_APPEARANCE("window.active.button.unpressed.bg",
- theme->a_focused_unpressed_max, TRUE);
- READ_APPEARANCE("window.inactive.button.unpressed.bg",
- theme->a_unfocused_unpressed_max, TRUE);
-
- READ_APPEARANCE_COPY("window.active.button.hover.bg",
- theme->a_hover_focused_max, TRUE,
- theme->a_focused_unpressed_max);
- READ_APPEARANCE_COPY("window.inactive.button.hover.bg",
- theme->a_hover_unfocused_max, TRUE,
- theme->a_unfocused_unpressed_max);
-
- theme->a_disabled_focused_close =
- RrAppearanceCopy(theme->a_disabled_focused_max);
- theme->a_disabled_unfocused_close =
- RrAppearanceCopy(theme->a_disabled_unfocused_max);
- theme->a_hover_focused_close =
- RrAppearanceCopy(theme->a_hover_focused_max);
- theme->a_hover_unfocused_close =
- RrAppearanceCopy(theme->a_hover_unfocused_max);
- theme->a_unfocused_unpressed_close =
- RrAppearanceCopy(theme->a_unfocused_unpressed_max);
- theme->a_unfocused_pressed_close =
- RrAppearanceCopy(theme->a_unfocused_pressed_max);
- theme->a_focused_unpressed_close =
- RrAppearanceCopy(theme->a_focused_unpressed_max);
- theme->a_focused_pressed_close =
- RrAppearanceCopy(theme->a_focused_pressed_max);
- theme->a_disabled_focused_desk =
- RrAppearanceCopy(theme->a_disabled_focused_max);
- theme->a_disabled_unfocused_desk =
- RrAppearanceCopy(theme->a_disabled_unfocused_max);
- theme->a_hover_focused_desk =
- RrAppearanceCopy(theme->a_hover_focused_max);
- theme->a_hover_unfocused_desk =
- RrAppearanceCopy(theme->a_hover_unfocused_max);
- theme->a_toggled_hover_focused_desk =
- RrAppearanceCopy(theme->a_toggled_hover_focused_max);
- theme->a_toggled_hover_unfocused_desk =
- RrAppearanceCopy(theme->a_toggled_hover_unfocused_max);
- theme->a_toggled_focused_unpressed_desk =
- RrAppearanceCopy(theme->a_toggled_focused_unpressed_max);
- theme->a_toggled_unfocused_unpressed_desk =
- RrAppearanceCopy(theme->a_toggled_unfocused_unpressed_max);
- theme->a_toggled_focused_pressed_desk =
- RrAppearanceCopy(theme->a_toggled_focused_pressed_max);
- theme->a_toggled_unfocused_pressed_desk =
- RrAppearanceCopy(theme->a_toggled_unfocused_pressed_max);
- theme->a_unfocused_unpressed_desk =
- RrAppearanceCopy(theme->a_unfocused_unpressed_max);
- theme->a_unfocused_pressed_desk =
- RrAppearanceCopy(theme->a_unfocused_pressed_max);
- theme->a_focused_unpressed_desk =
- RrAppearanceCopy(theme->a_focused_unpressed_max);
- theme->a_focused_pressed_desk =
- RrAppearanceCopy(theme->a_focused_pressed_max);
- theme->a_disabled_focused_shade =
- RrAppearanceCopy(theme->a_disabled_focused_max);
- theme->a_disabled_unfocused_shade =
- RrAppearanceCopy(theme->a_disabled_unfocused_max);
- theme->a_hover_focused_shade =
- RrAppearanceCopy(theme->a_hover_focused_max);
- theme->a_hover_unfocused_shade =
- RrAppearanceCopy(theme->a_hover_unfocused_max);
- theme->a_toggled_hover_focused_shade =
- RrAppearanceCopy(theme->a_toggled_hover_focused_max);
- theme->a_toggled_hover_unfocused_shade =
- RrAppearanceCopy(theme->a_toggled_hover_unfocused_max);
- theme->a_toggled_focused_unpressed_shade =
- RrAppearanceCopy(theme->a_toggled_focused_unpressed_max);
- theme->a_toggled_unfocused_unpressed_shade =
- RrAppearanceCopy(theme->a_toggled_unfocused_unpressed_max);
- theme->a_toggled_focused_pressed_shade =
- RrAppearanceCopy(theme->a_toggled_focused_pressed_max);
- theme->a_toggled_unfocused_pressed_shade =
- RrAppearanceCopy(theme->a_toggled_unfocused_pressed_max);
- theme->a_unfocused_unpressed_shade =
- RrAppearanceCopy(theme->a_unfocused_unpressed_max);
- theme->a_unfocused_pressed_shade =
- RrAppearanceCopy(theme->a_unfocused_pressed_max);
- theme->a_focused_unpressed_shade =
- RrAppearanceCopy(theme->a_focused_unpressed_max);
- theme->a_focused_pressed_shade =
- RrAppearanceCopy(theme->a_focused_pressed_max);
- theme->a_disabled_focused_iconify =
- RrAppearanceCopy(theme->a_disabled_focused_max);
- theme->a_disabled_unfocused_iconify =
- RrAppearanceCopy(theme->a_disabled_focused_max);
- theme->a_hover_focused_iconify =
- RrAppearanceCopy(theme->a_hover_focused_max);
- theme->a_hover_unfocused_iconify =
- RrAppearanceCopy(theme->a_hover_unfocused_max);
- theme->a_unfocused_unpressed_iconify =
- RrAppearanceCopy(theme->a_unfocused_unpressed_max);
- theme->a_unfocused_pressed_iconify =
- RrAppearanceCopy(theme->a_unfocused_pressed_max);
- theme->a_focused_unpressed_iconify =
- RrAppearanceCopy(theme->a_focused_unpressed_max);
- theme->a_focused_pressed_iconify =
- RrAppearanceCopy(theme->a_focused_pressed_max);
+ /* toggled hover */
+ READ_APPEARANCE_COPY("window.active.button.toggled.hover.bg",
+ a_toggled_hover_focused_tmp, TRUE,
+ a_toggled_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.toggled.hover.bg",
+ a_toggled_hover_unfocused_tmp, TRUE,
+ a_toggled_unfocused_unpressed_tmp);
+
+
+ /* now do individual buttons, if specified */
+
+ /* max button */
+ read_button_colors(db, inst, theme, theme->btn_max, "max");
+
+ /* bases: unpressed, pressed, disabled */
+ READ_APPEARANCE_COPY("window.active.button.max.unpressed.bg",
+ theme->btn_max->a_focused_unpressed, TRUE,
+ a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.unpressed.bg",
+ theme->btn_max->a_unfocused_unpressed, TRUE,
+ a_unfocused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.max.pressed.bg",
+ theme->btn_max->a_focused_pressed, TRUE,
+ a_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.pressed.bg",
+ theme->btn_max->a_unfocused_pressed, TRUE,
+ a_unfocused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.max.disabled.bg",
+ theme->btn_max->a_disabled_focused, TRUE,
+ a_disabled_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.disabled.bg",
+ theme->btn_max->a_disabled_unfocused, TRUE,
+ a_disabled_unfocused_tmp);
+
+ /* hover */
+ READ_APPEARANCE_COPY("window.active.button.max.hover.bg",
+ theme->btn_max->a_hover_focused, TRUE,
+ a_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.hover.bg",
+ theme->btn_max->a_hover_unfocused, TRUE,
+ a_hover_unfocused_tmp);
+
+ /* toggled unpressed */
+ READ_APPEARANCE_("window.active.button.max.toggled.unpressed.bg",
+ "window.active.button.max.toggled.bg",
+ theme->btn_max->a_toggled_focused_unpressed, TRUE,
+ a_toggled_focused_unpressed_tmp);
+ READ_APPEARANCE_("window.inactive.button.max.toggled.unpressed.bg",
+ "window.inactive.button.max.toggled.bg",
+ theme->btn_max->a_toggled_unfocused_unpressed, TRUE,
+ a_toggled_unfocused_unpressed_tmp);
+
+ /* toggled pressed */
+ READ_APPEARANCE_COPY("window.active.button.max.toggled.pressed.bg",
+ theme->btn_max->a_toggled_focused_pressed, TRUE,
+ a_toggled_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.toggled.pressed.bg",
+ theme->btn_max->a_toggled_unfocused_pressed, TRUE,
+ a_toggled_unfocused_pressed_tmp);
+
+ /* toggled hover */
+ READ_APPEARANCE_COPY("window.active.button.max.toggled.hover.bg",
+ theme->btn_max->a_toggled_hover_focused, TRUE,
+ a_toggled_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.max.toggled.hover.bg",
+ theme->btn_max->a_toggled_hover_unfocused, TRUE,
+ a_toggled_hover_unfocused_tmp);
+
+ /* close button */
+ read_button_colors(db, inst, theme, theme->btn_close, "close");
+
+ READ_APPEARANCE_COPY("window.active.button.close.unpressed.bg",
+ theme->btn_close->a_focused_unpressed, TRUE,
+ a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.close.unpressed.bg",
+ theme->btn_close->a_unfocused_unpressed, TRUE,
+ a_unfocused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.close.pressed.bg",
+ theme->btn_close->a_focused_pressed, TRUE,
+ a_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.close.pressed.bg",
+ theme->btn_close->a_unfocused_pressed, TRUE,
+ a_unfocused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.close.disabled.bg",
+ theme->btn_close->a_disabled_focused, TRUE,
+ a_disabled_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.close.disabled.bg",
+ theme->btn_close->a_disabled_unfocused, TRUE,
+ a_disabled_unfocused_tmp);
+ READ_APPEARANCE_COPY("window.active.button.close.hover.bg",
+ theme->btn_close->a_hover_focused, TRUE,
+ a_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.close.hover.bg",
+ theme->btn_close->a_hover_unfocused, TRUE,
+ a_hover_unfocused_tmp);
+
+ /* desk button */
+ read_button_colors(db, inst, theme, theme->btn_desk, "desk");
+
+ /* bases: unpressed, pressed, disabled */
+ READ_APPEARANCE_COPY("window.active.button.desk.unpressed.bg",
+ theme->btn_desk->a_focused_unpressed, TRUE,
+ a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.unpressed.bg",
+ theme->btn_desk->a_unfocused_unpressed, TRUE,
+ a_unfocused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.desk.pressed.bg",
+ theme->btn_desk->a_focused_pressed, TRUE,
+ a_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.pressed.bg",
+ theme->btn_desk->a_unfocused_pressed, TRUE,
+ a_unfocused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.desk.disabled.bg",
+ theme->btn_desk->a_disabled_focused, TRUE,
+ a_disabled_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.disabled.bg",
+ theme->btn_desk->a_disabled_unfocused, TRUE,
+ a_disabled_unfocused_tmp);
+
+ /* hover */
+ READ_APPEARANCE_COPY("window.active.button.desk.hover.bg",
+ theme->btn_desk->a_hover_focused, TRUE,
+ a_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.hover.bg",
+ theme->btn_desk->a_hover_unfocused, TRUE,
+ a_hover_unfocused_tmp);
+
+ /* toggled unpressed */
+ READ_APPEARANCE_("window.active.button.desk.toggled.unpressed.bg",
+ "window.active.button.desk.toggled.bg",
+ theme->btn_desk->a_toggled_focused_unpressed, TRUE,
+ a_toggled_focused_unpressed_tmp);
+ READ_APPEARANCE_("window.inactive.button.desk.toggled.unpressed.bg",
+ "window.inactive.button.desk.toggled.bg",
+ theme->btn_desk->a_toggled_unfocused_unpressed, TRUE,
+ a_toggled_unfocused_unpressed_tmp);
+
+ /* toggled pressed */
+ READ_APPEARANCE_COPY("window.active.button.desk.toggled.pressed.bg",
+ theme->btn_desk->a_toggled_focused_pressed, TRUE,
+ a_toggled_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.toggled.pressed.bg",
+ theme->btn_desk->a_toggled_unfocused_pressed, TRUE,
+ a_toggled_unfocused_pressed_tmp);
+
+ /* toggled hover */
+ READ_APPEARANCE_COPY("window.active.button.desk.toggled.hover.bg",
+ theme->btn_desk->a_toggled_hover_focused, TRUE,
+ a_toggled_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.desk.toggled.hover.bg",
+ theme->btn_desk->a_toggled_hover_unfocused, TRUE,
+ a_toggled_hover_unfocused_tmp);
+
+ /* shade button */
+ read_button_colors(db, inst, theme, theme->btn_shade, "shade");
+
+ /* bases: unpressed, pressed, disabled */
+ READ_APPEARANCE_COPY("window.active.button.shade.unpressed.bg",
+ theme->btn_shade->a_focused_unpressed, TRUE,
+ a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.unpressed.bg",
+ theme->btn_shade->a_unfocused_unpressed, TRUE,
+ a_unfocused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.shade.pressed.bg",
+ theme->btn_shade->a_focused_pressed, TRUE,
+ a_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.pressed.bg",
+ theme->btn_shade->a_unfocused_pressed, TRUE,
+ a_unfocused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.shade.disabled.bg",
+ theme->btn_shade->a_disabled_focused, TRUE,
+ a_disabled_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.disabled.bg",
+ theme->btn_shade->a_disabled_unfocused, TRUE,
+ a_disabled_unfocused_tmp);
+
+ /* hover */
+ READ_APPEARANCE_COPY("window.active.button.shade.hover.bg",
+ theme->btn_shade->a_hover_focused, TRUE,
+ a_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.hover.bg",
+ theme->btn_shade->a_hover_unfocused, TRUE,
+ a_hover_unfocused_tmp);
+
+ /* toggled unpressed */
+ READ_APPEARANCE_("window.active.button.shade.toggled.unpressed.bg",
+ "window.active.button.shade.toggled.bg",
+ theme->btn_shade->a_toggled_focused_unpressed, TRUE,
+ a_toggled_focused_unpressed_tmp);
+ READ_APPEARANCE_("window.inactive.button.shade.toggled.unpressed.bg",
+ "window.inactive.button.shade.toggled.bg",
+ theme->btn_shade->a_toggled_unfocused_unpressed, TRUE,
+ a_toggled_unfocused_unpressed_tmp);
+
+ /* toggled pressed */
+ READ_APPEARANCE_COPY("window.active.button.shade.toggled.pressed.bg",
+ theme->btn_shade->a_toggled_focused_pressed, TRUE,
+ a_toggled_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.toggled.pressed.bg",
+ theme->btn_shade->a_toggled_unfocused_pressed, TRUE,
+ a_toggled_unfocused_pressed_tmp);
+
+ /* toggled hover */
+ READ_APPEARANCE_COPY("window.active.button.shade.toggled.hover.bg",
+ theme->btn_shade->a_toggled_hover_focused, TRUE,
+ a_toggled_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.shade.toggled.hover.bg",
+ theme->btn_shade->a_toggled_hover_unfocused, TRUE,
+ a_toggled_hover_unfocused_tmp);
+
+ /* iconify button */
+ read_button_colors(db, inst, theme, theme->btn_iconify, "iconify");
+
+ READ_APPEARANCE_COPY("window.active.button.iconify.unpressed.bg",
+ theme->btn_iconify->a_focused_unpressed, TRUE,
+ a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.iconify.unpressed.bg",
+ theme->btn_iconify->a_unfocused_unpressed, TRUE,
+ a_unfocused_unpressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.iconify.pressed.bg",
+ theme->btn_iconify->a_focused_pressed, TRUE,
+ a_focused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.iconify.pressed.bg",
+ theme->btn_iconify->a_unfocused_pressed, TRUE,
+ a_unfocused_pressed_tmp);
+ READ_APPEARANCE_COPY("window.active.button.iconify.disabled.bg",
+ theme->btn_iconify->a_disabled_focused, TRUE,
+ a_disabled_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.iconify.disabled.bg",
+ theme->btn_iconify->a_disabled_unfocused, TRUE,
+ a_disabled_unfocused_tmp);
+ READ_APPEARANCE_COPY("window.active.button.iconify.hover.bg",
+ theme->btn_iconify->a_hover_focused, TRUE,
+ a_hover_focused_tmp);
+ READ_APPEARANCE_COPY("window.inactive.button.iconify.hover.bg",
+ theme->btn_iconify->a_hover_unfocused, TRUE,
+ a_hover_unfocused_tmp);
+
+ /* osd buttons */
+ READ_APPEARANCE_COPY("osd.button.unpressed.bg", theme->osd_unpressed_button, TRUE, a_focused_unpressed_tmp);
+ READ_APPEARANCE_COPY_TEXTURES("osd.button.pressed.bg", theme->osd_pressed_button, TRUE, a_focused_pressed_tmp, 5);
+ READ_APPEARANCE_COPY_TEXTURES("osd.button.focused.bg", theme->osd_focused_button, TRUE, a_focused_unpressed_tmp, 5);