[almanah] UI: Fixed main text view scroll background
- From: Álvaro Peña <alvaropg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] UI: Fixed main text view scroll background
- Date: Mon, 12 Oct 2015 10:58:38 +0000 (UTC)
commit e2b11c555df561c4856918a43c4616c83cf59929
Author: Álvaro Peña <alvaropg gmail com>
Date: Sun Oct 11 20:29:36 2015 +0200
UI: Fixed main text view scroll background
Just adding the "view" class to the ScrolledWindow has been enough to
turn the background into white, and no intermediated widgets has been
neccesary.
Thanks to Florian Müllner for pointing me to this solutions!
https://bugzilla.gnome.org/show_bug.cgi?id=754841
src/css/almanah.css | 4 ----
src/ui/almanah.ui | 38 ++++++++++++++------------------------
2 files changed, 14 insertions(+), 28 deletions(-)
---
diff --git a/src/css/almanah.css b/src/css/almanah.css
index 44361db..b953df6 100644
--- a/src/css/almanah.css
+++ b/src/css/almanah.css
@@ -14,7 +14,3 @@ AlmanahTagEntry:focused {
border-left-width: 0px;
border-right-width: 0px;
}
-
-.almanah-mw-text-event-box {
- background-color: #fff;
-}
diff --git a/src/ui/almanah.ui b/src/ui/almanah.ui
index 281032a..5357e64 100644
--- a/src/ui/almanah.ui
+++ b/src/ui/almanah.ui
@@ -113,32 +113,22 @@
<property name="vexpand">True</property>
<style>
<class name="almanah-mw-scrolled"/>
+ <class name="view"/>
</style>
<child>
- <object class="GtkEventBox"
id="almanah_mw_text_event_box">
- <property
name="visible">True</property>
- <property
name="can_focus">False</property>
- <style>
- <class
name="almanah-mw-text-event-box"/>
- </style>
- <child>
- <object
class="GtkTextView" id="almanah_mw_entry_view">
- <style>
- <class
name="almanah-mw-entry-view"/>
- </style>
- <property
name="width-request">500</property>
- <property
name="can-focus">True</property>
- <property
name="has-focus">True</property>
- <property
name="wrap-mode">GTK_WRAP_WORD</property>
- <property
name="halign">center</property>
- <property
name="hexpand">False</property>
- <property
name="vexpand">True</property>
- <property
name="margin">12</property>
- <child
internal-child="accessible">
-
<object class="AtkObject" id="a11y-almanah_mw_entry_view">
-
<property name="AtkObject::accessible-name" translatable="yes">Entry editing area</property>
-
</object>
- </child>
+ <object class="GtkTextView"
id="almanah_mw_entry_view">
+ <property
name="width-request">500</property>
+ <property
name="can-focus">True</property>
+ <property
name="has-focus">True</property>
+ <property
name="wrap-mode">GTK_WRAP_WORD_CHAR</property>
+ <property
name="halign">center</property>
+ <property
name="hexpand">False</property>
+ <property
name="vexpand">True</property>
+ <property
name="margin-start">20</property>
+ <property
name="margin-end">20</property>
+ <child
internal-child="accessible">
+ <object
class="AtkObject" id="a11y-almanah_mw_entry_view">
+ <property
name="AtkObject::accessible-name" translatable="yes">Entry editing area</property>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]