stackswitcher: Stop hardcoding 100px width
We can now set a min-width in the theme, so we don't have to hardcode the size request here anymore. https://bugzilla.gnome.org/show_bug.cgi?id=726371
This commit is contained in:
parent
ad349caa00
commit
f7466b236a
@ -187,11 +187,6 @@ update_button (GtkStackSwitcher *self,
|
||||
|
||||
gtk_widget_set_visible (button, gtk_widget_get_visible (widget) && (title != NULL || icon_name != NULL));
|
||||
|
||||
if (icon_name != NULL)
|
||||
gtk_widget_set_size_request (button, -1, -1);
|
||||
else
|
||||
gtk_widget_set_size_request (button, 100, -1);
|
||||
|
||||
g_free (title);
|
||||
g_free (icon_name);
|
||||
|
||||
|
@ -2681,6 +2681,7 @@ row {
|
||||
*************/
|
||||
|
||||
expander {
|
||||
& title:hover { background: red; }
|
||||
& arrow {
|
||||
-gtk-icon-source: -gtk-icontheme('pan-end-symbolic');
|
||||
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
|
||||
@ -3376,3 +3377,7 @@ frame.keycap {
|
||||
*:dnd {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
stackswitcher button.text-button {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
@ -3804,6 +3804,8 @@ row {
|
||||
/*************
|
||||
* Expanders *
|
||||
*************/
|
||||
expander title:hover {
|
||||
background: red; }
|
||||
expander arrow {
|
||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||
expander arrow:dir(rtl) {
|
||||
@ -4551,6 +4553,12 @@ frame.keycap {
|
||||
*:dnd {
|
||||
border: 1px solid black; }
|
||||
|
||||
stackswitcher button.text-button, stackswitcher GtkScaleButton.button.text-button,
|
||||
stackswitcher GtkVolumeButton.button.text-button,
|
||||
stackswitcher .titlebar button.text-button.titlebutton,
|
||||
.titlebar stackswitcher button.text-button.titlebutton {
|
||||
min-width: 100px; }
|
||||
|
||||
/* GTK NAMED COLORS
|
||||
----------------
|
||||
use responsibly! */
|
||||
|
@ -3974,6 +3974,8 @@ row {
|
||||
/*************
|
||||
* Expanders *
|
||||
*************/
|
||||
expander title:hover {
|
||||
background: red; }
|
||||
expander arrow {
|
||||
-gtk-icon-source: -gtk-icontheme("pan-end-symbolic"); }
|
||||
expander arrow:dir(rtl) {
|
||||
@ -4724,6 +4726,12 @@ frame.keycap {
|
||||
*:dnd {
|
||||
border: 1px solid black; }
|
||||
|
||||
stackswitcher button.text-button, stackswitcher GtkScaleButton.button.text-button,
|
||||
stackswitcher GtkVolumeButton.button.text-button,
|
||||
stackswitcher .titlebar button.text-button.titlebutton,
|
||||
.titlebar stackswitcher button.text-button.titlebutton {
|
||||
min-width: 100px; }
|
||||
|
||||
/* GTK NAMED COLORS
|
||||
----------------
|
||||
use responsibly! */
|
||||
|
Loading…
Reference in New Issue
Block a user