Skip to content

Commit

Permalink
Downloader rewrite: now it's possible to pause and cancel downloads
Browse files Browse the repository at this point in the history
Downloads can be resumed after interruption
UI improvements


Former-commit-id: e2f0c9e
  • Loading branch information
tkashkin committed Jul 22, 2018
1 parent 49e9099 commit 592134e
Show file tree
Hide file tree
Showing 32 changed files with 1,880 additions and 633 deletions.
31 changes: 30 additions & 1 deletion data/GameHub.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ button label
{
border: none;
border-color: transparent;
box-shadow: 0 0 0 1px alpha (#000, 0.05), 0 3px 3px alpha (#000, 0.22);
box-shadow: 0 0 0 1px alpha(#000, 0.05), 0 3px 3px alpha(#000, 0.22);
border-radius: 4px;
}
list:not(:backdrop) row:selected:focus label.category-label
Expand All @@ -143,4 +143,33 @@ list:not(:backdrop) row:selected:focus label.category-label
list.installers-list
{
background: transparent;
}

list.downloads-list row
{
background: transparent;
border-bottom: 1px alpha(#333, 0.3) solid;
outline: none;
}
list.downloads-list row:last-child
{
border-bottom: none;
}
list.downloads-list row:selected
{
background: transparent;
outline: none;
}
list.downloads-list row:focus
{
background: transparent;
outline: none;
}

label.games-list-header
{
background: alpha(#333, 0.1);
margin-top: -1px;
border-top: 1px alpha(#333, 0.3) solid;
border-bottom: 1px alpha(#333, 0.3) solid;
}
7 changes: 7 additions & 0 deletions data/com.github.tkashkin.gamehub.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@
</screenshots>

<releases>
<release type="development" version="0.6.0" date="2018-07-22">
<description>
<p>Downloader rewrite: now it's possible to pause and cancel downloads</p>
<p>Downloads can be resumed after interruption</p>
<p>UI improvements</p>
</description>
</release>
<release type="development" version="0.5.7" date="2018-07-21">
<description>
<p>Yet another locale fix</p>
Expand Down
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
com.github.tkashkin.gamehub (0.6.0) xenial; urgency=low

* Downloader rewrite: now it's possible to pause and cancel downloads
* Downloads can be resumed after interruption
* UI improvements

-- tkashkin <[email protected]> Sun, 22 Jul 2018 16:18:24 +0300

com.github.tkashkin.gamehub (0.5.7) xenial; urgency=low

* Yet another locale fix
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.5.7')
project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.6.0')

i18n = import('i18n')
gnome = import('gnome')
Expand Down
4 changes: 3 additions & 1 deletion po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ src/utils/Utils.vala
src/utils/FSUtils.vala
src/utils/Parser.vala
src/utils/Settings.vala
src/utils/Downloader.vala

src/utils/downloader/Downloader.vala
src/utils/downloader/SoupDownloader.vala
164 changes: 126 additions & 38 deletions po/com.github.tkashkin.gamehub.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.github.tkashkin.gamehub\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-21 01:58+0300\n"
"POT-Creation-Date: 2018-07-22 17:49+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -42,21 +42,28 @@ msgstr ""
msgid "Installing"
msgstr ""

#: src/data/Game.vala:77
#: src/data/Game.vala:77 src/utils/downloader/Downloader.vala:137
msgid "Download started"
msgstr ""

#: src/data/Game.vala:78
msgid "Download finished"
#: src/data/Game.vala:79
msgid "Not installed"
msgstr ""

#: src/data/Game.vala:81
#, c-format
msgid "Downloading: %d%% (%s / %s)"
#: src/data/Game.vala:89
msgid "Installed:"
msgstr ""

#: src/data/Game.vala:83
msgid "Not installed"
#: src/data/Game.vala:90
msgid "Installing:"
msgstr ""

#: src/data/Game.vala:91
msgid "Downloading:"
msgstr ""

#: src/data/Game.vala:93
msgid "Not installed:"
msgstr ""

#: src/data/sources/steam/Steam.vala:17
Expand All @@ -70,7 +77,8 @@ msgid ""
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:13 src/ui/views/WelcomeView.vala:34
#: src/ui/views/WelcomeView.vala:59 src/ui/views/GamesView/GamesView.vala:143
#: src/ui/views/WelcomeView.vala:58 src/ui/views/GamesView/GamesView.vala:158
#: src/ui/views/GamesView/GamesView.vala:355
msgid "Settings"
msgstr ""

Expand All @@ -86,10 +94,6 @@ msgstr ""
msgid "Generate key"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:35
msgid "Steam API key"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:36
msgid "Steam installation directory"
msgstr ""
Expand All @@ -106,7 +110,7 @@ msgstr ""
msgid "Humble Bundle games directory"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:49
#: src/ui/dialogs/SettingsDialog.vala:50
msgid "Humble Bundle installers cache"
msgstr ""

Expand All @@ -115,15 +119,27 @@ msgstr ""
msgid "Close"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:180
#: src/ui/dialogs/SettingsDialog.vala:106
msgid "Default"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:114
msgid "Restore default API key"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:125
msgid "Steam API key"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:215
msgid "Open"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:187
#: src/ui/dialogs/SettingsDialog.vala:222
msgid "Clear"
msgstr ""

#: src/ui/dialogs/SettingsDialog.vala:203
#: src/ui/dialogs/SettingsDialog.vala:238
#, c-format
msgid "%llu installer; %s"
msgid_plural "%llu installers; %s"
Expand All @@ -132,7 +148,7 @@ msgstr[1] ""

#: src/ui/dialogs/GameInstallDialog.vala:31
#: src/ui/dialogs/GameInstallDialog.vala:131
#: src/ui/views/GameDetailsView/GameDetailsView.vala:162
#: src/ui/views/GameDetailsView/GameDetailsView.vala:202
msgid "Install"
msgstr ""

Expand Down Expand Up @@ -169,83 +185,155 @@ msgstr ""
msgid "Skip"
msgstr ""

#: src/ui/views/WelcomeView.vala:115
#: src/ui/views/WelcomeView.vala:116
msgid "Ready"
msgstr ""

#: src/ui/views/WelcomeView.vala:121
#: src/ui/views/WelcomeView.vala:122
msgid "Authentication required"
msgstr ""

#: src/ui/views/WelcomeView.vala:126
#: src/ui/views/WelcomeView.vala:127
msgid "Authenticating..."
msgstr ""

#: src/ui/views/WelcomeView.vala:137
#: src/ui/views/WelcomeView.vala:138
#, c-format
msgid "Install %s"
msgstr ""

#: src/ui/views/WelcomeView.vala:138
#: src/ui/views/WelcomeView.vala:139
msgid "Return to GameHub after installing"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:92
#: src/ui/views/GamesView/GamesView.vala:62
msgid "No games"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:62
msgid "Get some games or enable some game sources in settings"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:63
msgid "Reload"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:108
msgid "Grid view"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:93
#: src/ui/views/GamesView/GamesView.vala:109
msgid "List view"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:107
#: src/ui/views/GamesView/GamesView.vala:121
msgid "All games"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:111
#: src/ui/views/GamesView/GamesView.vala:125
#, c-format
msgid "%s games"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:117
#: src/ui/views/GamesView/GamesView.vala:131
msgid "Downloads"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:138
#: src/ui/views/GamesView/GamesView.vala:153
msgid "Search"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:194
#: src/ui/views/GamesView/GamesView.vala:277
#, c-format
msgid "%u game"
msgid_plural "%u games"
msgstr[0] ""
msgstr[1] ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:122
#: src/ui/views/GamesView/GamesView.vala:281
#, c-format
msgid "No %s games"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:282
msgid "Get some Linux-compatible games"
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:353
msgid ""
"No games were loaded from Steam. Set your games list privacy to public or "
"use your own Steam API key in settings."
msgstr ""

#: src/ui/views/GamesView/GamesView.vala:354
msgid "Privacy"
msgstr ""

#: src/ui/views/GamesView/GameDownloadProgressView.vala:59
#: src/ui/views/GameDetailsView/GameDetailsView.vala:129
msgid "Pause download"
msgstr ""

#: src/ui/views/GamesView/GameDownloadProgressView.vala:64
#: src/ui/views/GameDetailsView/GameDetailsView.vala:135
msgid "Resume download"
msgstr ""

#: src/ui/views/GamesView/GameDownloadProgressView.vala:69
#: src/ui/views/GameDetailsView/GameDetailsView.vala:141
msgid "Cancel download"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:162
msgid "Description"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:163
#: src/ui/views/GameDetailsView/GameDetailsView.vala:203
msgid "Run"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:164
#: src/ui/views/GameDetailsView/GameDetailsView.vala:204
msgid "Open installation directory"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:165
#: src/ui/views/GameDetailsView/GameDetailsView.vala:205
msgid "Open store page"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:166
#: src/ui/views/GameDetailsView/GameDetailsView.vala:206
msgid "Uninstall"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:235
#: src/ui/views/GameDetailsView/GameDetailsView.vala:307
msgid "Language"
msgstr ""

#: src/ui/views/GameDetailsView/GameDetailsView.vala:238
#: src/ui/views/GameDetailsView/GameDetailsView.vala:310
msgid "Languages"
msgstr ""

#: src/utils/downloader/Downloader.vala:136
msgid "Starting download"
msgstr ""

#: src/utils/downloader/Downloader.vala:138
msgid "Download finished"
msgstr ""

#: src/utils/downloader/Downloader.vala:139
msgid "Download failed"
msgstr ""

#: src/utils/downloader/Downloader.vala:141
#, c-format
msgid "Downloading: %d%% (%s / %s)"
msgstr ""

#: src/utils/downloader/Downloader.vala:143
#, c-format
msgid "Paused: %d%% (%s / %s)"
msgstr ""

#: src/utils/downloader/Downloader.vala:145
msgid "Download cancelled"
msgstr ""
Loading

0 comments on commit 592134e

Please sign in to comment.