Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDDM分辨率缩放时,输入密码的框高度没有变化 #6

Open
Firestar-Reimu opened this issue May 27, 2021 · 10 comments
Open

Comments

@Firestar-Reimu
Copy link

Firestar-Reimu commented May 27, 2021

2736*1824 屏幕,需要200%分辨率

导致密码的星号“*”和光标的高度超出了框

@Firestar-Reimu Firestar-Reimu changed the title 分辨率缩放时,输入密码的框高度没有变化 SDDM分辨率缩放时,输入密码的框高度没有变化 May 27, 2021
@vinceliuice
Copy link
Owner

修复了!

@Firestar-Reimu
Copy link
Author

非常感谢!顺便看一下这个issue

vinceliuice/McMojave-circle#58

@vinceliuice
Copy link
Owner

小尺寸的软件图标并没有制作,直接用的64px的图标缩放的

@Firestar-Reimu
Copy link
Author

Firestar-Reimu commented May 30, 2021

还有一点,考虑到汉字方块字的特性,斜体排版质量不佳,如果我想把“登陆失败”的字体改成Regular/Bold,应该去哪里改呢?

PS: 更改24h的方法:

/Fluent-kde-main/sddm/Fluent/components/Clock.qml中Line 29

Label {
        text: Qt.formatTime(timeSource.data["Local"]["DateTime"], "hh:mm:ss")

@vinceliuice
Copy link
Owner

我自己也没搞太清楚,用的系统的主题修改的

@Firestar-Reimu
Copy link
Author

Main.qml的第455行:

onLoginFailed: {
            notificationMessage = i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Login Failed")
            footer.enabled = true
            mainStack.enabled = true
            userListComponent.userList.opacity = 1
        }

@vinceliuice
Copy link
Owner

                    font.family: textFont.name
                    font.bold: true

@Firestar-Reimu
Copy link
Author

Firestar-Reimu commented May 31, 2021

453~462行

    Connections {
        target: sddm
        onLoginFailed: {
            notificationMessage = i18nd("plasma_lookandfeel_org.kde.lookandfeel", "Login Failed")
            font.family: textFont.name
            font.bold: true
            footer.enabled = true
            mainStack.enabled = true
            userListComponent.userList.opacity = 1
        }

报错:457行24列:expect token:','(就是font.family:的冒号那里)

不知道具体的语法格式究竟是什么样子的,能否把上面那条comment改成完整的代码或者提交一个commit?(顺便把195行的“Caps Lock”的斜体也关了)

@vinceliuice
Copy link
Owner

font.family: 你需要添加一个真实字体的名字

@Firestar-Reimu
Copy link
Author

Firestar-Reimu commented Jul 4, 2021

font.family: 你需要添加一个真实字体的名字

试过了,不行,还是说缺逗号,但是官方文档(https://doc.qt.io/qt-5.12/qtquick-text-fonts-fonts-qml.html)里面也不需要逗号啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants