Add Carl's focus title hack as a devtool option

(cherry picked from commit 125974dd7a)
This commit is contained in:
James Graham
2024-04-21 17:02:26 +00:00
committed by Tobias Fella
parent 3d4a1d22b0
commit 923839d6c7
3 changed files with 15 additions and 0 deletions

View File

@@ -29,5 +29,14 @@ FormCard.FormCardPage {
onToggled: Config.alwaysVerifyDevice = checked
}
FormCard.FormCheckDelegate {
text: i18nc("@option:check", "Show focus in window header")
checked: Config.windowTitleFocus
onToggled: {
Config.windowTitleFocus = checked;
Config.save();
}
}
}
}

View File

@@ -165,6 +165,10 @@
<label>Always allow device verification</label>
<default>false</default>
</entry>
<entry name="WindowTitleFocus" type="bool">
<label>Show the current focus item in the window title</label>
<default>false</default>
</entry>
</group>
<group name="FeatureFlags">
<entry name="Threads" type="bool">

View File

@@ -16,6 +16,8 @@ Kirigami.ApplicationWindow {
property NeoChatConnection connection: Controller.activeConnection
title: Config.windowTitleFocus ? activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "") : "NeoChat"
minimumWidth: Kirigami.Units.gridUnit * 20
minimumHeight: Kirigami.Units.gridUnit * 15