feat(config): add CosmicTk config for configuring window controls
This commit is contained in:
parent
912f0665ef
commit
4f07d05ee8
6 changed files with 87 additions and 11 deletions
|
|
@ -704,11 +704,11 @@ impl<App: Application> ApplicationExt for App {
|
|||
header = header.start(toggle);
|
||||
}
|
||||
|
||||
if core.window.show_maximize {
|
||||
if core.window.show_maximize && core.toolkit_config.show_maximize {
|
||||
header = header.on_maximize(Message::Cosmic(cosmic::Message::Maximize));
|
||||
}
|
||||
|
||||
if core.window.show_minimize {
|
||||
if core.window.show_minimize && core.toolkit_config.show_minimize {
|
||||
header = header.on_minimize(Message::Cosmic(cosmic::Message::Minimize));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue