按照设计稿调整虚拟键盘高度,调整虚拟键盘数字按键字体大小

This commit is contained in:
linyuxuan 2022-12-09 16:43:30 +08:00 committed by hanteng
parent 67abd64cc8
commit afc0cc900a
3 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,7 @@ Rectangle {
property real fontSize: keyHeight * 6/11 * 3/4
property real shiftFontSize: fontSize / 2
property real switchKeyFontSize: fontSize * 3/4
property real fnSymbolKeyFontSize: fontSize * 3/4
property real actionKeyFontSize: fontSize * 3/4
property real preeditTextFontSize: fontSize * 3/4
property real candidateFontSize: fontSize * 3/4

View File

@ -4,6 +4,8 @@ SymbolKey {
height: virtualKeyboard.firstRowKeyHeight
property string fnValue
fontSize: virtualKeyboard.fnSymbolKeyFontSize
state: virtualKeyboard.fnSymbolState

View File

@ -86,7 +86,7 @@ private:
std::unique_ptr<QDBusInterface> virtualKeyboardBackendInterface_ = nullptr;
std::unique_ptr<QDBusInterface> fcitx5ControllerInterface_ = nullptr;
bool virtualkeyboardVisible_ = false;
float virtualKeyboardAspectRatio_ = 472.0 / 1620.0;
float virtualKeyboardAspectRatio_ = 512.0 / 1620.0;
QString virtualKeyboardBackendService =
"org.fcitx.Fcitx5.VirtualKeyboardBackend";
QString virtualKeyboardBackendServicePath = "/virtualkeyboard";