Skip to content
This repository has been archived by the owner on Jun 14, 2020. It is now read-only.

Commit

Permalink
1.1.8 - Remember last used pair of coin/currency + Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Galardi committed Oct 10, 2017
1 parent 13a1efa commit 97731f7
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 113 deletions.
61 changes: 35 additions & 26 deletions data/com.github.lainsce.coin.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,32 +26,41 @@
</screenshot>
</screenshots>
<releases>
<release version="1.1.7" date="2017-09-17">
<description>
<p>Release: Olá, Brasil!</p>
<ul>
<li>Add Brazilian Portuguese translations.</li>
</ul>
</description>
</release>
<release version="1.1.6" date="2017-09-17">
<description>
<p>Release: Style My Assets, Sir!</p>
<ul>
<li>Use GResources to load the GTK CSS Styling</li>
</ul>
</description>
</release>
<release version="1.1.5" date="2017-09-07">
<description>
<p>Release: Money Makes The World Go Round</p>
<ul>
<li>Enable Coin for translators</li>
<li>Add XAR coin.</li>
<li>Add South African Rand (ZAR).</li>
</ul>
</description>
</release>
<release version="1.1.8" date="2017-10-13">
<description>
<p>Release: Reinjecting the Assets</p>
<ul>
<li>Remembers the pair of currency &amp; coin that you chose.</li>
<li>Minor fixes to make Coin more aesthetically appealing.</li>
</ul>
</description>
</release>
<release version="1.1.7" date="2017-09-17">
<description>
<p>Release: Olá, Brasil!</p>
<ul>
<li>Add Brazilian Portuguese translations.</li>
</ul>
</description>
</release>
<release version="1.1.6" date="2017-09-17">
<description>
<p>Release: Style My Assets, Sir!</p>
<ul>
<li>Use GResources to load the GTK CSS Styling</li>
</ul>
</description>
</release>
<release version="1.1.5" date="2017-09-07">
<description>
<p>Release: Money Makes The World Go Round</p>
<ul>
<li>Enable Coin for translators</li>
<li>Add XAR coin.</li>
<li>Add South African Rand (ZAR).</li>
</ul>
</description>
</release>
</releases>
<custom>
<value key="x-appcenter-color-primary">#badbad</value>
Expand Down
10 changes: 10 additions & 0 deletions data/com.github.lainsce.coin.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,15 @@
<summary>Window position</summary>
<description>The y axis of window position</description>
</key>
<key name="coin" type="s">
<default>""</default>
<summary>Last set currency</summary>
<description>The last set world currency</description>
</key>
<key name="virtualcoin" type="s">
<default>""</default>
<summary>Last set virtual coin</summary>
<description>The last set virtual coin</description>
</key>
</schema>
</schemalist>
9 changes: 4 additions & 5 deletions data/stylesheet.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@define-color colorPrimary #badbad;
@define-color textColorPrimary #18330e;
@define-color bg_highlight_color shade (@colorPrimary, 1.1);
@define-color textColorPrimary #113311;

.titlebar,
.background {
Expand All @@ -16,8 +15,8 @@ GtkDialog .window-frame {
border-radius: 4px;
box-shadow:
0 0 0 1px alpha (shade (@colorPrimary, 0.6), 0.55),
0 8px 10px 1px alpha (#000, 0.14),
0 3px 14px 2px alpha (#000, 0.12),
0 5px 5px -3px alpha (#000, 0.4),
0 8px 10px 1px alpha (@textColorPrimary, 0.14),
0 3px 14px 2px alpha (@textColorPrimary, 0.12),
0 5px 5px -3px alpha (@textColorPrimary, 0.4),
0 14px 28px transparent;
}
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
com.github.lainsce.coin (1.1.8) xenial; urgency=low

* Remembers last used pair of coin/currency.
* Minor fixes in the front-end.

-- Lains <lainsce@airmail.cc> Fri, 13 October 2017 11:53:00 -0300

com.github.lainsce.coin (1.1.7) xenial; urgency=low

* Add Brazilian Portuguese translations.
Expand Down
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.coin', ['vala', 'c'],
version: '1.1.7'
version: '1.1.8'
)

# Import main lib files
Expand Down
5 changes: 3 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
namespace Coin {
public class Application : Gtk.Application {
public MainWindow app_window;

public Application () {
Object (flags: ApplicationFlags.FLAGS_NONE,
Expand All @@ -28,11 +29,11 @@ namespace Coin {

protected override void activate () {
if (get_windows ().length () > 0) {
get_windows ().data.present ();
app_window.present ();
return;
}

var app_window = new MainWindow (this);
app_window = new MainWindow (this);
app_window.show ();
}

Expand Down
2 changes: 2 additions & 0 deletions src/Constants/AppSettings.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace Coin {
public class AppSettings : Granite.Services.Settings {
public int window_x { get; set; }
public int window_y { get; set; }
public string coin { get; set; }
public string virtualcoin { get; set; }

private static AppSettings? instance;
public static unowned AppSettings get_default () {
Expand Down
Loading

0 comments on commit 97731f7

Please sign in to comment.