Add underline to clickable media carousel headings

This commit is contained in:
Avery
2024-02-17 18:05:30 -05:00
parent ceb37c79e9
commit 85d70a26c6
3 changed files with 15 additions and 0 deletions

View File

@@ -81,12 +81,15 @@ impl Component for MediaCarousel {
set_orientation: gtk::Orientation::Vertical,
set_spacing: 16,
add_css_class: "media-carousel",
gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
gtk::Box {
set_spacing: 4,
set_cursor_from_name: if label_clickable { Some("pointer") } else { None },
add_css_class?: label_clickable.then_some("clickable-title"),
gtk::Label {
set_label: label.as_str(),

View File

@@ -1,3 +1,4 @@
@use "library";
@use "media-details";
@use "media-tile";
@use "video-player";

View File

@@ -0,0 +1,11 @@
@import "overrides";
.media-carousel {
.clickable-title {
border-bottom: solid 1px transparent;
transition: border-bottom-color 150ms;
&:hover {
border-bottom-color: "@window_fg_color";
}
}
}