The expander icon is renamed from "arrow" to "expander".
The expander widget itself is renamed from "expander" to
"expander-widget" (Better ideas welcome).
This makes it possible to have an "expander" icon in more places then
the GtkExpander widget (in particular in tree lists) and not
confuse it with arrows.
G_TYPE_NONE, 0);
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_EXPANDER_ACCESSIBLE);
- gtk_widget_class_set_css_name (widget_class, I_("expander"));
+ gtk_widget_class_set_css_name (widget_class, I_("expander-widget"));
}
static void
NULL);
gtk_container_add (GTK_CONTAINER (priv->box), priv->title_widget);
- priv->arrow_widget = gtk_icon_new ("arrow");
+ priv->arrow_widget = gtk_icon_new ("expander");
gtk_style_context_add_class (gtk_widget_get_style_context (priv->arrow_widget),
GTK_STYLE_CLASS_HORIZONTAL);
gtk_container_add (GTK_CONTAINER (priv->title_widget), priv->arrow_widget);
* Expanders *
*************/
expander {
- title > arrow {
- min-width: 16px;
- min-height: 16px;
- -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
- &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
+ min-width: 16px;
+ min-height: 16px;
+ -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
+ &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
- &:disabled { color: $insensitive_fg_color; }
- &:disabled:backdrop { color: $backdrop_insensitive_color; }
- }
+ &:disabled { color: $insensitive_fg_color; }
+ &:disabled:backdrop { color: $backdrop_insensitive_color; }
- title > arrow:checked, title:checked > arrow { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
+ &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
+}
- title:hover > arrow {
- color: lighten($fg_color,30%); //only lightens the arrow
- }
+expander-widget title:hover > expander {
+ color: lighten($fg_color,30%); //only lightens the icon
}
.app-notification border, .app-notification.frame border { border: none; }
/************* Expanders * */
-expander title > arrow { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+expander { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
-expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+expander:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
-expander title > arrow:disabled { color: #919190; }
+expander:disabled { color: #919190; }
-expander title > arrow:disabled:backdrop { color: #5b5b5b; }
+expander:disabled:backdrop { color: #5b5b5b; }
-expander title > arrow:checked, expander title:checked > arrow { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
+expander:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
-expander title:hover > arrow { color: white; }
+expander-widget title:hover > expander { color: white; }
/************ Calendar * */
calendar { color: white; border: 1px solid #1b1b1b; }
.app-notification border, .app-notification.frame border { border: none; }
/************* Expanders * */
-expander title > arrow { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+expander { min-width: 16px; min-height: 16px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
-expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+expander:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
-expander title > arrow:disabled { color: #929595; }
+expander:disabled { color: #929595; }
-expander title > arrow:disabled:backdrop { color: #d4cfca; }
+expander:disabled:backdrop { color: #d4cfca; }
-expander title > arrow:checked, expander title:checked > arrow { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
+expander:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
-expander title:hover > arrow { color: #748489; }
+expander-widget title:hover > expander { color: #748489; }
/************ Calendar * */
calendar { color: black; border: 1px solid #cdc7c2; }
*************/
expander {
- title > arrow {
- min-width: 24px;
- min-height: 24px;
- -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
- &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
+ min-width: 24px;
+ min-height: 24px;
+ -gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
+ &:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
- &:disabled { color: $insensitive_fg_color; }
+ &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
- &:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
- }
+ &:disabled { color: $insensitive_fg_color; }
+}
- title:hover > arrow {
- color: lighten($fg_color,30%); //only lightens the arrow
- }
+expander-widget title:hover > expander {
+ color: lighten($fg_color,30%); //only lightens the icon
}
/************
notebook.frame:backdrop { border-color: #737373; }
-notebook header { background-color: #262626; }
+notebook header { background-color: #131313; }
.frame notebook header { border: 1px solid gray; }
.right notebook tab.reorderable-page:backdrop { border-color: transparent; background-color: transparent; }
-notebook tab label { padding: 0 2px; font-weight: bold; color: gray; /* color: inherit doesn't work here */ }
+notebook tab label { padding: 0 2px; font-weight: bold; color: silver; /* color: inherit doesn't work here */ }
notebook tab label:backdrop { color: gray; }
-notebook tab:hover label { color: silver; }
+notebook tab:hover label { color: #dfdfdf; }
notebook tab:checked label { color: #fff; }
.app-notification border, .app-notification.frame border { border-width: 0; }
/************* Expanders * */
-expander title > arrow { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+expander { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
-expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+expander:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
-expander title > arrow:disabled { color: gray; }
+expander:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
-expander title > arrow:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
+expander:disabled { color: gray; }
-expander title:hover > arrow { color: white; }
+expander-widget title:hover > expander { color: white; }
/************ Calendar * */
calendar { border: 1px solid gray; }
notebook.frame:backdrop { border-color: #8d8d8d; }
-notebook header { background-color: #d9d9d9; }
+notebook header { background-color: #ececec; }
.frame notebook header { border: 1px solid gray; }
.right notebook tab.reorderable-page:backdrop { border-color: transparent; background-color: transparent; }
-notebook tab label { padding: 0 2px; font-weight: bold; color: gray; /* color: inherit doesn't work here */ }
+notebook tab label { padding: 0 2px; font-weight: bold; color: #404040; /* color: inherit doesn't work here */ }
notebook tab label:backdrop { color: gray; }
-notebook tab:hover label { color: #404040; }
+notebook tab:hover label { color: #202020; }
notebook tab:checked label { color: #000; }
.app-notification border, .app-notification.frame border { border-width: 0; }
/************* Expanders * */
-expander title > arrow { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
+expander { min-width: 24px; min-height: 24px; -gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
-expander title > arrow:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
+expander:dir(rtl) { -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl"); }
-expander title > arrow:disabled { color: gray; }
+expander:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
-expander title > arrow:checked { -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
+expander:disabled { color: gray; }
-expander title:hover > arrow { color: #4d4d4d; }
+expander-widget title:hover > expander { color: #4d4d4d; }
/************ Calendar * */
calendar { border: 1px solid gray; }
[window.background:dir(ltr)]
decoration:dir(ltr)
- expander:dir(ltr)
+ expander-widget:dir(ltr)
box.vertical:dir(ltr)
title.horizontal:dir(ltr)
- arrow.horizontal:dir(ltr)
+ expander.horizontal:dir(ltr)
label:dir(ltr)
[window.background:dir(rtl)]
decoration:dir(rtl)
- expander:dir(rtl)
+ expander-widget:dir(rtl)
box.vertical:dir(rtl)
title.horizontal:dir(rtl)
- arrow.horizontal:dir(rtl)
+ expander.horizontal:dir(rtl)
label:dir(rtl)