Skip to content

Commit

Permalink
revert: "feat(MediaViewer): do not use osd (#376)"
Browse files Browse the repository at this point in the history
This reverts commit 78337c2.
fix partially: #397
  • Loading branch information
GeopJr committed Aug 4, 2023
1 parent a1cf45f commit a2c0d45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions data/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ flowboxchild {
background: alpha(@success_bg_color, 0.1);
}

.media-viewer-headerbar {
background: rgba(0, 0, 0, .7);
color: white;
}

.ttl-status-heading {
font-size: 13px;
}
Expand Down
6 changes: 4 additions & 2 deletions src/Views/MediaViewer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ public class Tuba.Views.MediaViewer : Gtk.Box {
construct {
carousel = new Adw.Carousel () {
vexpand = true,
hexpand = true
hexpand = true,
css_classes = {"osd"}
};

// Move between media using the arrow keys
Expand Down Expand Up @@ -265,7 +266,7 @@ public class Tuba.Views.MediaViewer : Gtk.Box {
title_widget = new Gtk.Label (_("Media Viewer")) {
css_classes = {"title"}
},
css_classes = {"flat"}
css_classes = {"flat", "media-viewer-headerbar"}
};
var back_btn = new Gtk.Button.from_icon_name ("tuba-left-large-symbolic") {
tooltip_text = _("Go Back")
Expand All @@ -290,6 +291,7 @@ public class Tuba.Views.MediaViewer : Gtk.Box {

carousel_dots = new Adw.CarouselIndicatorDots () {
carousel = carousel,
css_classes = {"osd"},
visible = false
};

Expand Down

0 comments on commit a2c0d45

Please sign in to comment.