window/controls: Keep headerbar outside fullscreen
This commit is contained in:
parent
4a7ef27853
commit
410e71141f
2 changed files with 2 additions and 1 deletions
|
|
@ -44,3 +44,4 @@ src/widgets/sliding_view.rs
|
||||||
src/widgets/window_title.rs
|
src/widgets/window_title.rs
|
||||||
src/window.rs
|
src/window.rs
|
||||||
src/window.ui
|
src/window.ui
|
||||||
|
src/window/controls.rs
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ impl LpWindow {
|
||||||
self.image_view().controls_box_start().set_opacity(opacity);
|
self.image_view().controls_box_start().set_opacity(opacity);
|
||||||
self.image_view().controls_box_end().set_opacity(opacity);
|
self.image_view().controls_box_end().set_opacity(opacity);
|
||||||
|
|
||||||
if self.is_headerbar_flat() {
|
if self.is_headerbar_flat() && self.is_fullscreened() {
|
||||||
self.headerbar().set_opacity(opacity);
|
self.headerbar().set_opacity(opacity);
|
||||||
} else {
|
} else {
|
||||||
self.headerbar().set_opacity(1.);
|
self.headerbar().set_opacity(1.);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue