-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Relies on #263] Style update #264
base: page-list-upgrade
Are you sure you want to change the base?
Changes from 1 commit
0b18f99
1f13008
187f596
aa195d7
0900b83
cd1fd53
9e92f2c
7e9b7da
0ceffaa
f1144c5
e58e5a3
33d07e5
7197ed1
fc27fba
21029fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
.title-label { | ||
font-size:1em; | ||
/* font-size: 1.15em; | ||
font-size: 15px; */ | ||
font-size: 1.2em; | ||
font-weight: 700; | ||
} | ||
|
||
.preview-label { | ||
opacity:1; | ||
} | ||
|
||
.date-time-label { | ||
opacity:0.6; | ||
font-size:0.9em; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ | |
</key> | ||
|
||
<key name="editor-font" type="s"> | ||
<default>"Open Sans 12"</default> | ||
<default>"Open Sans 10"</default> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the change to 10? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I thought it was more in line with how fonts on the system are sized, I can change it back if you don't like it/don't think it's good. |
||
<summary>Editor font</summary> | ||
<description>The editor's font family and size</description> | ||
</key> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,43 +37,45 @@ public class ENotes.PageItem : Gtk.ListBoxRow { | |
private void build_ui () { | ||
set_activatable (true); | ||
|
||
var margin_horizontal = 10; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
grid = new Gtk.Grid (); | ||
grid.orientation = Gtk.Orientation.VERTICAL; | ||
|
||
line1 = new Gtk.Label (""); | ||
line1.use_markup = true; | ||
line1.halign = Gtk.Align.START; | ||
line1.get_style_context ().add_class ("h3"); | ||
line1.get_style_context ().add_class ("title-label"); | ||
line1.ellipsize = Pango.EllipsizeMode.END; | ||
((Gtk.Misc) line1).xalign = 0; | ||
line1.margin_top = 4; | ||
line1.margin_left = 8; | ||
line1.margin_right = 8; | ||
line1.margin_top = 10; | ||
line1.margin_left = margin_horizontal; | ||
line1.margin_right = margin_horizontal; | ||
line1.margin_bottom = 4; | ||
|
||
line2 = new Gtk.Label (""); | ||
line2.halign = Gtk.Align.START; | ||
line2.margin_left = 8; | ||
line2.margin_right = 8; | ||
line2.margin_left = margin_horizontal; | ||
line2.margin_right = margin_horizontal; | ||
line2.margin_bottom = 4; | ||
line2.use_markup = true; | ||
line2.set_line_wrap (true); | ||
line2.ellipsize = Pango.EllipsizeMode.END; | ||
((Gtk.Misc) line2).xalign = 0; | ||
line2.get_style_context ().add_class (Gtk.STYLE_CLASS_DIM_LABEL); | ||
line2.lines = 3; | ||
line2.get_style_context ().add_class ("preview-label"); | ||
line2.lines = 1; | ||
|
||
line3 = new Gtk.Label (""); | ||
line3.halign = Gtk.Align.START; | ||
line3.margin_left = 8; | ||
line3.margin_right = 8; | ||
line3.margin_bottom = 4; | ||
line3.margin_left = margin_horizontal; | ||
line3.margin_right = margin_horizontal; | ||
line3.margin_bottom = 10; | ||
line3.use_markup = true; | ||
line3.set_line_wrap (true); | ||
line3.ellipsize = Pango.EllipsizeMode.END; | ||
((Gtk.Misc) line3).xalign = 0; | ||
line3.get_style_context ().add_class (Gtk.STYLE_CLASS_DIM_LABEL); | ||
line3.lines = 3; | ||
line3.get_style_context ().add_class ("date-time-label"); | ||
line3.lines = 1; | ||
|
||
var separator = new Gtk.Separator (Gtk.Orientation.HORIZONTAL); | ||
separator.hexpand = true; | ||
|
@@ -103,7 +105,7 @@ public class ENotes.PageItem : Gtk.ListBoxRow { | |
date_string = date_string.chug (); | ||
this.line3.label = date_string; | ||
this.line2.label = page.subtitle; | ||
this.line1.label = "<b>" + page.name + "</b>"; | ||
this.line1.label = page.name; | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't leave commented code :)