feat(app): set header title seperately from window title

This change will enable applications to set different titles for each
This commit is contained in:
Michael Aaron Murphy 2023-09-13 15:26:51 +02:00 committed by Michael Murphy
parent 02413e5fa6
commit 9552916a59
2 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,8 @@ pub struct NavBar {
#[allow(clippy::struct_excessive_bools)]
#[derive(Clone)]
pub struct Window {
/// Label to as title in headerbar.
pub header_title: String,
pub use_template: bool,
pub can_fullscreen: bool,
pub sharp_corners: bool,
@ -58,6 +60,7 @@ impl Default for Core {
scale_factor: 1.0,
title: String::new(),
window: Window {
header_title: String::new(),
use_template: true,
can_fullscreen: false,
sharp_corners: false,