[gnome-calculator] Also add padding to the infoview (bgo#743499)
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] Also add padding to the infoview (bgo#743499)
- Date: Wed, 19 Oct 2016 12:17:25 +0000 (UTC)
commit 1bf0923b0bce39ee1073e037c6180c888f014220
Author: Robert Roth <robert roth off gmail com>
Date: Wed Oct 19 15:17:08 2016 +0300
Also add padding to the infoview (bgo#743499)
data/calculator.css | 8 +++++++-
data/math-window.ui | 2 +-
src/math-display.vala | 3 +++
3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/data/calculator.css b/data/calculator.css
index 534a34c..3bab747 100644
--- a/data/calculator.css
+++ b/data/calculator.css
@@ -3,11 +3,17 @@
}
.sourceview {
- padding: 0px 16px;
+ padding: 0px 12px;
+}
+
+.info-view {
+ padding: 0px 12px;
+ padding-bottom: 4px;
}
.equation-symbol {
padding: 0px 12px;
+ color: lighter(@theme_fg_color);
}
window > grid {
diff --git a/data/math-window.ui b/data/math-window.ui
index 2bb182c..ebae08f 100644
--- a/data/math-window.ui
+++ b/data/math-window.ui
@@ -67,7 +67,7 @@
<property name="vadjustment">vadjustment</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
- <property name="min_content_height">166</property>
+ <property name="min_content_height">170</property>
<child>
<placeholder/>
</child>
diff --git a/src/math-display.vala b/src/math-display.vala
index 2f0f179..8ba2283 100644
--- a/src/math-display.vala
+++ b/src/math-display.vala
@@ -77,6 +77,9 @@ public class MathDisplay : Gtk.Viewport
info_box.pack_start (info_view, true, true, 0);
info_buffer = info_view.get_buffer ();
+ style_context = info_view.get_style_context ();
+ style_context.add_class ("info-view");
+
spinner = new Gtk.Spinner ();
info_box.pack_end (spinner, false, false, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]