Skip to content

Commit

Permalink
2.2.3 - Some varied small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Apr 11, 2020
1 parent 5fc9eff commit 3780596
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 6 deletions.
9 changes: 9 additions & 0 deletions data/com.github.lainsce.quilter.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
<releases>
<release version="2.2.3" date="2020-04-17">
<description>
<p>Release: Spring Cleaned</p>
<ul>
<li>Small Fix: Preview View titles shouldn't look smushed.</li>
<li>Small Fix: Improved Sidebar pane and View switchers contrast in Dark Mode.</li>
</ul>
</description>
</release>
<release version="2.2.2" date="2020-04-03">
<description>
<p>Release: Small Fixes</p>
Expand Down
10 changes: 10 additions & 0 deletions data/styles/app-main-stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,13 @@ actionbar,
border-bottom-right-radius: 4px;
border-top-right-radius: 4px;
}

.dark-switcher .radio:checked {
background-image: linear-gradient(0deg, #1f1f1f, #2f2f2f);
box-shadow: none;
}

.dark-switcher .radio:not(checked) {
background-color: #0f0f0f;
box-shadow: none;
}
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Name our project
project('com.github.lainsce.quilter', ['vala', 'c'],
version: '2.2.2'
version: '2.2.3'
)

# Import main lib files
Expand Down
10 changes: 5 additions & 5 deletions po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -460,27 +460,27 @@ msgstr "Cerrar sin guardar"

#: src/Services/ExportUtils.vala:87
msgid "Print to File"
msgstr ""
msgstr "Imprimir Archivio"

#: src/Services/ExportUtils.vala:144
msgid "Select destination PDF file"
msgstr ""
msgstr "Seleccionar Archivio PDF de destino"

#: src/Services/ExportUtils.vala:149
msgid "PDF File"
msgstr ""
msgstr "Archivio PDF"

#: src/Services/ExportUtils.vala:157 src/Services/ExportUtils.vala:205
msgid "All Files"
msgstr "Todos los archivos"

#: src/Services/ExportUtils.vala:193
msgid "Select destination HTML file"
msgstr ""
msgstr "Seleccionar Archivio HTML de destino"

#: src/Services/ExportUtils.vala:198
msgid "HTML File"
msgstr ""
msgstr "Archivio HTML"

#: src/Services/FileManager.vala:84
msgid "Open file"
Expand Down
15 changes: 15 additions & 0 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,21 @@ namespace Quilter {
_("Change view")
);

var v_context = view_mode.get_style_context ();
if (Quilter.Application.gsettings.get_string("visual-mode") == "dark") {
v_context.add_class ("dark-switcher");
} else {
v_context.remove_class ("dark-switcher");
}

Quilter.Application.gsettings.changed.connect (() => {
if (Quilter.Application.gsettings.get_string("visual-mode") == "dark") {
v_context.add_class ("dark-switcher");
} else {
v_context.remove_class ("dark-switcher");
}
});

toolbar.pack_end (set_font_menu);
toolbar.pack_end (view_mode);

Expand Down
1 change: 1 addition & 0 deletions src/Styles/quilter.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class Quilter.Styles.quilter {
h6 {
font-style: bold;
margin-top: 2rem;
line-height: 2rem;
}
h1 {
Expand Down
1 change: 1 addition & 0 deletions src/Styles/quilterdark.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class Quilter.Styles.quilterdark {
h6 {
font-style: bold;
margin-top: 2rem;
line-height: 2rem;
}
h1 {
Expand Down
1 change: 1 addition & 0 deletions src/Styles/quiltersepia.vala
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class Quilter.Styles.quiltersepia {
h6 {
font-style: bold;
margin-top: 2rem;
line-height: 2rem;
}
h1 {
Expand Down
14 changes: 14 additions & 0 deletions src/Widgets/SideBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ namespace Quilter.Widgets {
stack.add_titled (sidebar_outline (), "outline", _("Outline"));
stack.child_set_property (outline_grid, "icon-name", "outline-symbolic");

if (Quilter.Application.gsettings.get_string("visual-mode") == "dark") {
s_context.add_class ("dark-switcher");
} else {
s_context.remove_class ("dark-switcher");
}

Quilter.Application.gsettings.changed.connect (() => {
if (Quilter.Application.gsettings.get_string("visual-mode") == "dark") {
s_context.add_class ("dark-switcher");
} else {
s_context.remove_class ("dark-switcher");
}
});

scrolled_box.add (stack);

var grid = new Gtk.Grid ();
Expand Down

0 comments on commit 3780596

Please sign in to comment.