Differences
This shows you the differences between two versions of the page.
design:xfwm4:tabwin:default_theming [2013/12/11 11:20] – created ochosi | design:xfwm4:tabwin:default_theming [2013/12/11 11:25] (current) – ochosi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | = Tabwin default theming = | + | ===== Tabwin default theming |
The tabwin uses GtkButtons by default, so if there is no tabwin-specific code in the theme, the widgets will look like buttons by default. | The tabwin uses GtkButtons by default, so if there is no tabwin-specific code in the theme, the widgets will look like buttons by default. | ||
Line 8: | Line 8: | ||
Generally speaking, GtkButtons only have three states (not counting insensitive, | Generally speaking, GtkButtons only have three states (not counting insensitive, | ||
- | Option 1: | + | **Option 1:** |
| Not selected | Keyboard-selection | Mouse-hover | Mouse-hover + Keyboard-selection | | | Not selected | Keyboard-selection | Mouse-hover | Mouse-hover + Keyboard-selection | | ||
| GTK_STATE_NORMAL | GTK_STATE_SELECTED | GTK_STATE_PRELIGHT | GTK_STATE_ACTIVE | | | GTK_STATE_NORMAL | GTK_STATE_SELECTED | GTK_STATE_PRELIGHT | GTK_STATE_ACTIVE | | ||
- | Pro: Looks more like the current tabwin. The selected-bg-color is usually used for GTK_STATE_SELECTED, | + | //Pro:// Looks more like the current tabwin. The selected-bg-color is usually used for GTK_STATE_SELECTED, |
- | Con: Breaks with some themes, because GTK_SELECTED is not a state a button can normally be in, so themes don't have support for it. This is especially bad with pixmap themes, as theming breaks entirely with those (see Adwaita in the screenshots below). | + | |
- | Option 2: | + | //Con:// Breaks with some themes, because GTK_SELECTED is not a state a button can normally be in, so themes don't have support for it. This is especially bad with pixmap themes, as theming breaks entirely with those (see Adwaita in the screenshots below). |
+ | |||
+ | **Option 2:** | ||
| Not selected | Keyboard-selection | Mouse-hover | Mouse-hover + Keyboard-selection | | | Not selected | Keyboard-selection | Mouse-hover | Mouse-hover + Keyboard-selection | | ||
| GTK_STATE_NORMAL | GTK_STATE_ACTIVE | GTK_STATE_PRELIGHT | GTK_STATE_ACTIVE | | | GTK_STATE_NORMAL | GTK_STATE_ACTIVE | GTK_STATE_PRELIGHT | GTK_STATE_ACTIVE | | ||
- | Pro: Rock solid, works with every theme. | + | //Pro:// Rock solid, works with every theme. |
- | Con: Current selection isn't as obvious, no diff between keyboard-selection and mouse-hover+keyboard-selection. | + | |
- | == Screenshots == | + | //Con:// Current selection isn't as obvious, no diff between keyboard-selection and mouse-hover+keyboard-selection. |
- | These screenshots show Option 1 above Option 2. | + | |
- | Xfce default theme: | + | ==== Screenshots |
+ | These screenshots show Option 1 above Option 2. (Note: currently two screenshots show slightly broken theming. Ambiance Option 2 doesn' | ||
+ | |||
+ | **Xfce default theme:** | ||
{{: | {{: | ||
- | Ambiance theme: | + | |
+ | **Ambiance theme:** | ||
{{: | {{: | ||
- | Adwaita theme: | + | |
+ | **Adwaita theme:** | ||
{{: | {{: |