[dconf-editor] Give more space to value row if possible.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Give more space to value row if possible.
- Date: Mon, 18 Jul 2016 13:04:06 +0000 (UTC)
commit fa3761a78d578d9183c182a29d450b1c7c8ac516
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Mon Jul 18 15:03:27 2016 +0200
Give more space to value row if possible.
editor/dconf-editor.css | 2 ++
editor/dconf-window.vala | 22 +++++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 832d7b9..b07e50d 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -78,6 +78,8 @@ window > popover.menu {
.dconf-list > row > .key > grid > grid { min-width:400px;
transition:min-width 0.3s; }
.large-window .dconf-list > row > .key > grid > grid { min-width:450px; }
+.large-window.xl .dconf-list > row > .key > grid > grid { min-width:474px; }
+.large-window.xl.xxl .dconf-list > row > .key > grid > grid { min-width:500px; }
/* grid spacing and padding-end */
.dconf-list:dir(ltr) > row grid > label { padding-right: 0.5em; }
diff --git a/editor/dconf-window.vala b/editor/dconf-window.vala
index 6d8dfc9..aa53a0e 100644
--- a/editor/dconf-window.vala
+++ b/editor/dconf-window.vala
@@ -130,10 +130,30 @@ class DConfWindow : ApplicationWindow
/* responsive design */
StyleContext context = get_style_context ();
- if (allocation.width > 1000)
+ if (allocation.width > 1200)
+ {
+ context.add_class ("xxl");
+ context.add_class ("xl");
+ context.add_class ("large-window");
+ }
+ else if (allocation.width > 1100)
+ {
+ context.remove_class ("xxl");
+ context.add_class ("xl");
+ context.add_class ("large-window");
+ }
+ else if (allocation.width > 1000)
+ {
+ context.remove_class ("xxl");
+ context.remove_class ("xl");
context.add_class ("large-window");
+ }
else
+ {
+ context.remove_class ("xxl");
+ context.remove_class ("xl");
context.remove_class ("large-window");
+ }
/* save size */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]