[gtk+] W32: Make combobox-entry thinner by removing unneeded padding
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] W32: Make combobox-entry thinner by removing unneeded padding
- Date: Tue, 1 Apr 2014 10:43:47 +0000 (UTC)
commit c58ed480e5adff8b7fecf6cf5133213bd266fea2
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Wed Mar 26 06:54:52 2014 +0000
W32: Make combobox-entry thinner by removing unneeded padding
https://bugzilla.gnome.org/show_bug.cgi?id=727075
gtk/resources/theme/gtk-win32-base.css | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/resources/theme/gtk-win32-base.css b/gtk/resources/theme/gtk-win32-base.css
index 6d7d400..dea84db 100644
--- a/gtk/resources/theme/gtk-win32-base.css
+++ b/gtk/resources/theme/gtk-win32-base.css
@@ -720,6 +720,13 @@ GtkComboBox.combobox-entry .button {
border-width: 0;
background-image: -gtk-win32-theme-part(combobox, 1 1);
color: rgba(0, 0, 0, 0);
+/* Remove padding from combobox button (GtkArrow inside of it is hardcoded to be
+ 16x16, but we draw even smaller arrow instead, so padding is completely unnecessary,
+ it only makes the button bigger for not good reason).
+ Only do this for combobox-entry, because non-entry combobox IS the button,
+ and it does need to be as thick as the items of the list it pops up (and it's
+ still slimmer than padded combobox-entry!). */
+ padding: 0px;
}
GtkComboBox.combobox-entry .button:prelight,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]