mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-21 04:07:46 +00:00
Improve login page sizing of the account and profile selectors
This commit is contained in:
parent
b0122b736c
commit
4abe56ea82
1 changed files with 11 additions and 6 deletions
|
@ -126,8 +126,7 @@ QQC2.Control {
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
id: currentProfileDelegate
|
id: currentProfileDelegate
|
||||||
|
|
||||||
text: i18n("Current Profile")
|
text: LauncherCore.currentProfile.name
|
||||||
description: LauncherCore.currentProfile.name
|
|
||||||
|
|
||||||
QQC2.Menu {
|
QQC2.Menu {
|
||||||
id: profileMenu
|
id: profileMenu
|
||||||
|
@ -154,7 +153,7 @@ QQC2.Control {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: profileMenu.popup(currentProfileDelegate, currentProfileDelegate.width, currentProfileDelegate.height)
|
onClicked: profileMenu.popup(currentProfileDelegate, currentProfileDelegate.width - profileMenu.width, currentProfileDelegate.height)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,10 +165,12 @@ QQC2.Control {
|
||||||
FormCard.FormButtonDelegate {
|
FormCard.FormButtonDelegate {
|
||||||
id: currentAccountDelegate
|
id: currentAccountDelegate
|
||||||
|
|
||||||
text: i18n("Current Account")
|
text: LauncherCore.currentProfile.account.name
|
||||||
description: LauncherCore.currentProfile.account.name
|
|
||||||
|
|
||||||
leading: Components.Avatar {
|
leading: Components.Avatar {
|
||||||
|
implicitWidth: Kirigami.Units.iconSizes.medium
|
||||||
|
implicitHeight: Kirigami.Units.iconSizes.medium
|
||||||
|
|
||||||
name: LauncherCore.currentProfile.account.name
|
name: LauncherCore.currentProfile.account.name
|
||||||
source: LauncherCore.currentProfile.account.avatarUrl
|
source: LauncherCore.currentProfile.account.avatarUrl
|
||||||
}
|
}
|
||||||
|
@ -203,7 +204,7 @@ QQC2.Control {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClicked: accountMenu.popup(currentAccountDelegate, currentAccountDelegate.width, currentAccountDelegate.height)
|
onClicked: accountMenu.popup(currentAccountDelegate, currentAccountDelegate.width - accountMenu.width, currentAccountDelegate.height)
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
|
@ -216,6 +217,10 @@ QQC2.Control {
|
||||||
label: LauncherCore.currentProfile.account.isSapphire ? i18n("Username") : i18n("Square Enix ID")
|
label: LauncherCore.currentProfile.account.isSapphire ? i18n("Username") : i18n("Square Enix ID")
|
||||||
text: LauncherCore.currentProfile.account.name
|
text: LauncherCore.currentProfile.account.name
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
QQC2.ToolTip.text: i18n("The username can only be changed under account settings.")
|
||||||
|
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||||
|
QQC2.ToolTip.visible: hovered
|
||||||
}
|
}
|
||||||
|
|
||||||
FormCard.FormDelegateSeparator {
|
FormCard.FormDelegateSeparator {
|
||||||
|
|
Loading…
Add table
Reference in a new issue