diff --git a/CMakeLists.txt b/CMakeLists.txt index 45d412a1..81a8dff9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ set (SOURCE_LIST src/Data/StationProvider.vala src/Data/RadioBrowser.vala src/Data/CategoryItemProvider.vala + src/Data/ImageProvider.vala src/Widgets/DiscoverBox/DiscoverBox.vala src/Widgets/DiscoverBox/DiscoverSidebar.vala src/Widgets/DiscoverBox/CategoriesRow.vala diff --git a/Ungesichertes Dokument 1 b/Ungesichertes Dokument 1 new file mode 100644 index 00000000..6f5b25ef --- /dev/null +++ b/Ungesichertes Dokument 1 @@ -0,0 +1,18 @@ +sub scale_pixbuf { + my ($pixbuf, $parent) = @_; + my $max_w = $parent->get_allocation()->{width}; + my $max_h = $parent->get_allocation()->{height}; + my $pixb_w = $pixbuf->get_width(); + my $pixb_h = $pixbuf->get_height(); + if (($pixb_w > $max_w) || ($pixb_h > $max_h)) { + my $sc_factor_w = $max_w / $pixb_w; + my $sc_factor_h = $max_h / $pixb_h; + my $sc_factor = min $sc_factor_w, $sc_factor_h; + my $sc_w = int($pixb_w * $sc_factor); + my $sc_h = int($pixb_h * $sc_factor); + my $scaled + = $pixbuf->scale_simple($sc_w, $sc_h, 'GDK_INTERP_HYPER'); + return $scaled; + } + return $pixbuf; +} diff --git a/data/style/style.css b/data/style/style.css index 883753ea..036e534a 100644 --- a/data/style/style.css +++ b/data/style/style.css @@ -18,7 +18,7 @@ .grid-item:backdrop { box-shadow: none; - border-color: @unfocused_borders; + border-color: @un3ocused_borders; } .stations-view{ @@ -37,6 +37,16 @@ color: @theme_selected_fg_color; } +.round-border{ + border-radius: 3px; +} + +.border{ + border-width: 1px 1px 1px 1px; + border-style: solid; + border-color: @borders; +} + .border-top{ border-width: 1px 0px 0px 0px; border-style: solid; diff --git a/data/ui/grid-item.ui b/data/ui/grid-item.ui index aa280aa0..d2d4a7c1 100644 --- a/data/ui/grid-item.ui +++ b/data/ui/grid-item.ui @@ -24,17 +24,33 @@ True False - - 64 - 64 + True False - 7 - 7 - 7 - 7 - application-rss+xml-symbolic - 6 + vertical + + + 64 + 64 + True + False + 7 + 7 + 7 + 7 + application-rss+xml-symbolic + 6 + + + + False + True + 0 + + False @@ -104,6 +120,9 @@ + + -1 + diff --git a/data/ui/grid-item.ui~ b/data/ui/grid-item.ui~ new file mode 100644 index 00000000..383620a3 --- /dev/null +++ b/data/ui/grid-item.ui~ @@ -0,0 +1,245 @@ + + + + + + diff --git a/data/ui/list-item.ui b/data/ui/list-item.ui index ac0b3f30..84de6159 100644 --- a/data/ui/list-item.ui +++ b/data/ui/list-item.ui @@ -10,17 +10,33 @@ True False - - 32 - 32 + True False 5 5 5 5 - application-rss+xml-symbolic - 5 + vertical + + + 32 + 32 + True + False + application-rss+xml-symbolic + 5 + + + True + True + 0 + + + False diff --git a/data/ui/list-item.ui~ b/data/ui/list-item.ui~ new file mode 100644 index 00000000..7f44b2f9 --- /dev/null +++ b/data/ui/list-item.ui~ @@ -0,0 +1,172 @@ + + + + + + diff --git a/data/ui/player-toolbar.ui b/data/ui/player-toolbar.ui index d32f1b5c..073b2d0f 100644 --- a/data/ui/player-toolbar.ui +++ b/data/ui/player-toolbar.ui @@ -550,14 +550,30 @@ audio-volume-medium-symbolic -