diff --git a/data/gtk/window.ui b/data/gtk/window.ui
index b987339..1f6215a 100644
--- a/data/gtk/window.ui
+++ b/data/gtk/window.ui
@@ -85,6 +85,11 @@
LpWindow
properties_button
primary_menu
+
+
+ image_view
+
+
diff --git a/src/window.rs b/src/window.rs
index de3844e..d909296 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -966,8 +966,10 @@ impl LpWindow {
fullscreened: bool,
show_properties: bool,
show_menu: bool,
+ current_image: Option,
) -> adw::ToolbarStyle {
- if self.extend_to_top(fullscreened, show_properties, show_menu) {
+ // Flat headerbar for empty state and fullscreen
+ if current_image.is_none() || self.extend_to_top(fullscreened, show_properties, show_menu) {
adw::ToolbarStyle::Flat
} else {
// Use the border variant of raised to avoid shadows over images