[dconf-editor] Remove some TODO CSS.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Remove some TODO CSS.
- Date: Thu, 30 Nov 2017 23:13:51 +0000 (UTC)
commit 5d6ff9b3d68df608aa3484b28e2bc7db033e0ea5
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Fri Dec 1 00:12:46 2017 +0100
Remove some TODO CSS.
editor/dconf-editor.css | 6 ++++++
editor/key-list-box-row.vala | 10 +++++-----
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/editor/dconf-editor.css b/editor/dconf-editor.css
index 8f36032..0d0b430 100644
--- a/editor/dconf-editor.css
+++ b/editor/dconf-editor.css
@@ -228,6 +228,12 @@
}
/*\
+* * lists headers
+\*/
+
+.header-label { margin:0.45em 0.75em 0.2em; font-weight:bold; }
+
+/*\
* * properties list
\*/
diff --git a/editor/key-list-box-row.vala b/editor/key-list-box-row.vala
index 03c54c3..c9b3969 100644
--- a/editor/key-list-box-row.vala
+++ b/editor/key-list-box-row.vala
@@ -45,17 +45,17 @@ private class ListBoxRowHeader : Grid
}
else
{
+ orientation = Orientation.VERTICAL;
+
Label label = new Label ((!) header_text);
label.visible = true;
label.halign = Align.START;
- label.margin_top = 10; // TODO CSS
- label.margin_left = 10; // TODO CSS
- label.get_style_context ().add_class ("dim-label");
- label.get_style_context ().add_class ("bold-label");
+ StyleContext context = label.get_style_context ();
+ context.add_class ("dim-label");
+ context.add_class ("header-label");
add (label);
}
- orientation = Orientation.VERTICAL;
halign = Align.CENTER;
Separator separator = new Separator (Orientation.HORIZONTAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]