This commit is contained in:
kramo
2023-04-11 23:31:16 +02:00
parent cebf080619
commit fd66d07ac3
18 changed files with 162 additions and 135 deletions

View File

@@ -1,7 +1,7 @@
using Gtk 4.0;
using Adw 1;
template game : Box {
template Game : Box {
orientation: vertical;
halign: center;
valign: start;
@@ -12,11 +12,18 @@ template game : Box {
orientation: vertical;
Button cover_button {
overflow: hidden;
Picture cover {
width-request: 200;
height-request: 300;
hexpand: true;
vexpand: true;
Overlay {
[overlay]
Spinner spinner {
margin-start: 72;
margin-end: 72;
}
Picture cover {
width-request: 200;
height-request: 300;
hexpand: true;
vexpand: true;
}
}
styles [

View File

@@ -61,7 +61,7 @@ ShortcutsWindow help_overlay {
ShortcutsShortcut {
title: _("Remove game");
action-name: "app.remove_game_overview";
action-name: "app.remove_game_details_view";
}
}
}

View File

@@ -1,7 +1,7 @@
@define-color accent_color @purple_1;
@define-color accent_bg_color @purple_4;
#overview_play_button {
#details_view_play_button {
color: @dark_5;
background-color: @light_1;
}

View File

@@ -1,7 +1,7 @@
@define-color accent_color @purple_5;
@define-color accent_bg_color @purple_3;
#overview_play_button {
#details_view_play_button {
color: @light_1;
background-color: @dark_5;
opacity: 0.8;

View File

@@ -33,9 +33,9 @@ template CartridgesWindow : Adw.ApplicationWindow {
visible-child: library_view;
transition-type: over_left;
Overlay overview {
Overlay details_view {
[overlay]
Box overview_box {
Box details_view_box {
orientation: vertical;
Adw.HeaderBar {
@@ -47,7 +47,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
}
[title]
Adw.WindowTitle overview_header_bar_title {
Adw.WindowTitle details_view_header_bar_title {
title: _("Game Details");
}
@@ -72,12 +72,12 @@ template CartridgesWindow : Adw.ApplicationWindow {
maximum-size: 200;
Overlay {
[overlay]
Spinner overview_spinner {
Spinner details_view_spinner {
margin-start: 72;
margin-end: 72;
}
Picture overview_cover {
Picture details_view_cover {
halign: end;
valign: start;
width-request: 200;
@@ -96,7 +96,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
vexpand: true;
valign: center;
Label overview_title {
Label details_view_title {
label: _("Game Title");
hexpand: true;
halign: start;
@@ -109,7 +109,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
]
}
Label overview_developer {
Label details_view_developer {
margin-top: 3;
hexpand: true;
halign: start;
@@ -128,12 +128,12 @@ template CartridgesWindow : Adw.ApplicationWindow {
hexpand: true;
halign: start;
Label overview_added {
Label details_view_added {
wrap: true;
wrap-mode: word_char;
natural-wrap-mode: word;
}
Label overview_last_played {
Label details_view_last_played {
margin-start: 12;
wrap: true;
wrap-mode: word_char;
@@ -145,8 +145,8 @@ template CartridgesWindow : Adw.ApplicationWindow {
vexpand: true;
valign: center;
Button overview_play_button {
name: "overview_play_button";
Button details_view_play_button {
name: "details_view_play_button";
action-name: "app.launch_game";
label: _("Play");
halign: start;
@@ -173,7 +173,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
"circular",
]
}
Button overview_hide_button {
Button details_view_hide_button {
action-name: "app.hide_game";
styles [
@@ -218,7 +218,7 @@ template CartridgesWindow : Adw.ApplicationWindow {
"background",
]
Picture overview_blurred_cover {
Picture details_view_blurred_cover {
can-shrink: true;
keep-aspect-ratio: false;
hexpand: true;