Skip to content

Commit

Permalink
Command line option to run game (tkashkin#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkashkin committed Dec 6, 2018
1 parent b479cbd commit e4a9f54
Show file tree
Hide file tree
Showing 13 changed files with 459 additions and 166 deletions.
26 changes: 12 additions & 14 deletions data/GameHub.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,46 +196,44 @@ list:not(:backdrop) row:selected:focus label.category-label
color: alpha(#ffffff, 0.8);
}

GtkListBox.installers-list,
list.installers-list
.installers-list
{
background: transparent;
}


GtkListBox.installers-list .list-row,
list.installers-list row
.installers-list .list-row,
.installers-list row
{
border-radius: 2px;
}

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

GtkLabel.games-list-header,
label.games-list-header
.games-list-header
{
background: alpha(#333, 0.1);
margin-top: -1px;
Expand Down
60 changes: 40 additions & 20 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-11-28 12:05+0300\n"
"POT-Creation-Date: 2018-12-06 14:52+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 All @@ -18,75 +18,87 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/app.vala:134
msgid "Run game"
msgstr ""

#: src/app.vala:135
msgid "Show compatibility options dialog"
msgstr ""

#: src/app.vala:136
msgid "Show main window"
msgstr ""

#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/ui/dialogs/SettingsDialog/tabs/Emulators.vala:226
#: src/ui/dialogs/GamePropertiesDialog.vala:220
msgid "Select executable"
msgstr ""

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/data/Runnable.vala:140 src/ui/views/GamesView/GamesView.vala:352
#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/data/Runnable.vala:144 src/ui/views/GamesView/GamesView.vala:352
#: src/ui/widgets/FileChooserEntry.vala:53
#: src/ui/widgets/FileChooserEntry.vala:55
msgid "Select"
msgstr ""

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/data/Runnable.vala:139 src/ui/widgets/FileChooserEntry.vala:53
#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/data/Runnable.vala:143 src/ui/widgets/FileChooserEntry.vala:53
#: src/ui/widgets/FileChooserEntry.vala:55
msgid "Cancel"
msgstr ""

#: src/data/Runnable.vala:125 src/ui/widgets/FileChooserEntry.vala:47
#: src/data/Runnable.vala:129 src/ui/widgets/FileChooserEntry.vala:47
msgid "Select directory"
msgstr ""

#: src/data/Runnable.vala:354
#: src/data/Runnable.vala:359
#, c-format
msgid "Part %u of %u: "
msgstr ""

#: src/data/Game.vala:424
#: src/data/Game.vala:465
msgctxt "status"
msgid "Running"
msgstr ""

#: src/data/Game.vala:427
#: src/data/Game.vala:468
msgctxt "status"
msgid "Installed"
msgstr ""

#: src/data/Game.vala:428
#: src/data/Game.vala:469
msgctxt "status"
msgid "Installing"
msgstr ""

#: src/data/Game.vala:429
#: src/data/Game.vala:470
msgctxt "status"
msgid "Download started"
msgstr ""

#: src/data/Game.vala:431
#: src/data/Game.vala:472
msgctxt "status"
msgid "Not installed"
msgstr ""

#: src/data/Game.vala:441
#: src/data/Game.vala:482
msgctxt "status_header"
msgid "Installed"
msgstr ""

#: src/data/Game.vala:442
#: src/data/Game.vala:483
msgctxt "status_header"
msgid "Installing"
msgstr ""

#: src/data/Game.vala:443
#: src/data/Game.vala:484
msgctxt "status_header"
msgid "Downloading"
msgstr ""

#: src/data/Game.vala:445
#: src/data/Game.vala:486
msgctxt "status_header"
msgid "Not installed"
msgstr ""
Expand Down Expand Up @@ -138,19 +150,19 @@ msgstr ""
msgid "Edit custom script"
msgstr ""

#: src/data/compat/WineWrap.vala:57
#: src/data/compat/WineWrap.vala:59
#: src/ui/dialogs/SettingsDialog/tabs/Emulators.vala:206
#: src/ui/dialogs/CompatRunDialog.vala:100
#: src/ui/views/GamesView/GameContextMenu.vala:42
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:209
msgid "Run"
msgstr ""

#: src/data/compat/WineWrap.vala:60
#: src/data/compat/WineWrap.vala:62
msgid "Show WineWrap menu"
msgstr ""

#: src/data/compat/WineWrap.vala:63 src/data/compat/Proton.vala:80
#: src/data/compat/WineWrap.vala:65 src/data/compat/Proton.vala:80
#: src/data/compat/Wine.vala:80
msgid "Kill apps in prefix"
msgstr ""
Expand Down Expand Up @@ -497,6 +509,14 @@ msgstr ""
msgid "Compatibility"
msgstr ""

#: src/ui/dialogs/GamePropertiesDialog.vala:273
msgid "Launch from terminal"
msgstr ""

#: src/ui/dialogs/GamePropertiesDialog.vala:284
msgid "Copy to clipboard"
msgstr ""

#: src/ui/dialogs/GameFSOverlaysDialog.vala:52
#, c-format
msgid "%s: Overlays"
Expand Down
62 changes: 42 additions & 20 deletions po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: com.github.tkashkin.gamehub\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-28 12:05+0300\n"
"POT-Creation-Date: 2018-12-06 14:52+0300\n"
"PO-Revision-Date: 2018-11-30 04:58+0000\n"
"Last-Translator: Ettore Atalan <[email protected]>\n"
"Language-Team: German <https://hosted.weblate.org/projects/gamehub/"
Expand All @@ -21,75 +21,89 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.3-dev\n"

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/app.vala:134
#, fuzzy
msgid "Run game"
msgstr "taskmgr ausführen"

#: src/app.vala:135
#, fuzzy
msgid "Show compatibility options dialog"
msgstr "Kompatibilitätsmodus erzwingen"

#: src/app.vala:136
msgid "Show main window"
msgstr ""

#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/ui/dialogs/SettingsDialog/tabs/Emulators.vala:226
#: src/ui/dialogs/GamePropertiesDialog.vala:220
msgid "Select executable"
msgstr "Ausführbare Datei auswählen"

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/data/Runnable.vala:140 src/ui/views/GamesView/GamesView.vala:352
#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/data/Runnable.vala:144 src/ui/views/GamesView/GamesView.vala:352
#: src/ui/widgets/FileChooserEntry.vala:53
#: src/ui/widgets/FileChooserEntry.vala:55
msgid "Select"
msgstr "Auswählen"

#: src/data/Runnable.vala:69 src/data/Runnable.vala:71
#: src/data/Runnable.vala:139 src/ui/widgets/FileChooserEntry.vala:53
#: src/data/Runnable.vala:73 src/data/Runnable.vala:75
#: src/data/Runnable.vala:143 src/ui/widgets/FileChooserEntry.vala:53
#: src/ui/widgets/FileChooserEntry.vala:55
msgid "Cancel"
msgstr "Abbrechen"

#: src/data/Runnable.vala:125 src/ui/widgets/FileChooserEntry.vala:47
#: src/data/Runnable.vala:129 src/ui/widgets/FileChooserEntry.vala:47
msgid "Select directory"
msgstr "Ordner auswählen"

#: src/data/Runnable.vala:354
#: src/data/Runnable.vala:359
#, c-format
msgid "Part %u of %u: "
msgstr "Teil %u von %u: "

#: src/data/Game.vala:424
#: src/data/Game.vala:465
msgctxt "status"
msgid "Running"
msgstr "Läuft"

#: src/data/Game.vala:427
#: src/data/Game.vala:468
msgctxt "status"
msgid "Installed"
msgstr "Installiert"

#: src/data/Game.vala:428
#: src/data/Game.vala:469
msgctxt "status"
msgid "Installing"
msgstr "Installiere"

#: src/data/Game.vala:429
#: src/data/Game.vala:470
msgctxt "status"
msgid "Download started"
msgstr "Download gestartet"

#: src/data/Game.vala:431
#: src/data/Game.vala:472
msgctxt "status"
msgid "Not installed"
msgstr "Nicht installiert"

#: src/data/Game.vala:441
#: src/data/Game.vala:482
msgctxt "status_header"
msgid "Installed"
msgstr "Installiert"

#: src/data/Game.vala:442
#: src/data/Game.vala:483
msgctxt "status_header"
msgid "Installing"
msgstr "Installation"

#: src/data/Game.vala:443
#: src/data/Game.vala:484
msgctxt "status_header"
msgid "Downloading"
msgstr "herunterladen"

#: src/data/Game.vala:445
#: src/data/Game.vala:486
msgctxt "status_header"
msgid "Not installed"
msgstr "Nicht installiert"
Expand Down Expand Up @@ -143,19 +157,19 @@ msgstr "Skript bearbeiten"
msgid "Edit custom script"
msgstr "Benutzerdefiniertes Skript bearbeiten"

#: src/data/compat/WineWrap.vala:57
#: src/data/compat/WineWrap.vala:59
#: src/ui/dialogs/SettingsDialog/tabs/Emulators.vala:206
#: src/ui/dialogs/CompatRunDialog.vala:100
#: src/ui/views/GamesView/GameContextMenu.vala:42
#: src/ui/views/GameDetailsView/GameDetailsPage.vala:209
msgid "Run"
msgstr "Ausführen"

#: src/data/compat/WineWrap.vala:60
#: src/data/compat/WineWrap.vala:62
msgid "Show WineWrap menu"
msgstr "WineWrap-Menü anzeigen"

#: src/data/compat/WineWrap.vala:63 src/data/compat/Proton.vala:80
#: src/data/compat/WineWrap.vala:65 src/data/compat/Proton.vala:80
#: src/data/compat/Wine.vala:80
msgid "Kill apps in prefix"
msgstr "Apps im Präfix beenden"
Expand Down Expand Up @@ -505,6 +519,14 @@ msgstr "Bilder suchen:"
msgid "Compatibility"
msgstr "Kompatibilität"

#: src/ui/dialogs/GamePropertiesDialog.vala:273
msgid "Launch from terminal"
msgstr ""

#: src/ui/dialogs/GamePropertiesDialog.vala:284
msgid "Copy to clipboard"
msgstr ""

#: src/ui/dialogs/GameFSOverlaysDialog.vala:52
#, c-format
msgid "%s: Overlays"
Expand Down
Loading

0 comments on commit e4a9f54

Please sign in to comment.