Add Carl's focus title hack as a devtool option
(cherry picked from commit 125974dd7a)
This commit is contained in:
committed by
Tobias Fella
parent
3d4a1d22b0
commit
923839d6c7
@@ -29,5 +29,14 @@ FormCard.FormCardPage {
|
|||||||
|
|
||||||
onToggled: Config.alwaysVerifyDevice = checked
|
onToggled: Config.alwaysVerifyDevice = checked
|
||||||
}
|
}
|
||||||
|
FormCard.FormCheckDelegate {
|
||||||
|
text: i18nc("@option:check", "Show focus in window header")
|
||||||
|
checked: Config.windowTitleFocus
|
||||||
|
|
||||||
|
onToggled: {
|
||||||
|
Config.windowTitleFocus = checked;
|
||||||
|
Config.save();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,6 +165,10 @@
|
|||||||
<label>Always allow device verification</label>
|
<label>Always allow device verification</label>
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
</entry>
|
</entry>
|
||||||
|
<entry name="WindowTitleFocus" type="bool">
|
||||||
|
<label>Show the current focus item in the window title</label>
|
||||||
|
<default>false</default>
|
||||||
|
</entry>
|
||||||
</group>
|
</group>
|
||||||
<group name="FeatureFlags">
|
<group name="FeatureFlags">
|
||||||
<entry name="Threads" type="bool">
|
<entry name="Threads" type="bool">
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
property NeoChatConnection connection: Controller.activeConnection
|
property NeoChatConnection connection: Controller.activeConnection
|
||||||
|
|
||||||
|
title: Config.windowTitleFocus ? activeFocusItem + " " + (activeFocusItem ? activeFocusItem.Accessible.name : "") : "NeoChat"
|
||||||
|
|
||||||
minimumWidth: Kirigami.Units.gridUnit * 20
|
minimumWidth: Kirigami.Units.gridUnit * 20
|
||||||
minimumHeight: Kirigami.Units.gridUnit * 15
|
minimumHeight: Kirigami.Units.gridUnit * 15
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user