From e66203ae4ce9fb08d65713245826769ebf4e2c24 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Sun, 18 Apr 2021 15:24:45 +0800 Subject: [PATCH] Update translations --- src/qml/NetworkPage/WifiView.qml | 2 +- src/qml/NetworkPage/WiredItem.qml | 19 +++ src/qml/NetworkPage/main.qml | 4 +- translations/zh_CN.ts | 236 ++++++++++++++---------------- 4 files changed, 134 insertions(+), 127 deletions(-) diff --git a/src/qml/NetworkPage/WifiView.qml b/src/qml/NetworkPage/WifiView.qml index d7ab192..683762d 100644 --- a/src/qml/NetworkPage/WifiView.qml +++ b/src/qml/NetworkPage/WifiView.qml @@ -4,7 +4,7 @@ import QtQuick.Layouts 1.12 import FishUI 1.0 as FishUI Item { - implicitHeight: _contentLayout.implicitHeight + FishUI.Theme.mediumRadius * 2 + implicitHeight: _contentLayout.implicitHeight + FishUI.Theme.mediumRadius ColumnLayout { id: _contentLayout diff --git a/src/qml/NetworkPage/WiredItem.qml b/src/qml/NetworkPage/WiredItem.qml index 139a768..dbcd075 100644 --- a/src/qml/NetworkPage/WiredItem.qml +++ b/src/qml/NetworkPage/WiredItem.qml @@ -9,8 +9,26 @@ import Cutefish.NetworkManagement 1.0 as NM Item { id: control + Rectangle { + anchors.fill: parent + radius: FishUI.Theme.smallRadius + color: mouseArea.containsMouse ? Qt.rgba(FishUI.Theme.textColor.r, + FishUI.Theme.textColor.g, + FishUI.Theme.textColor.b, + 0.1) : "transparent" + + Behavior on color { + ColorAnimation { + duration: 125 + easing.type: Easing.InOutCubic + } + } + } + MouseArea { + id: mouseArea anchors.fill: parent + hoverEnabled: true onClicked: { if (model.connectionState === NM.Enums.Deactivated) { handler.activateConnection(model.connectionPath, model.devicePath, model.specificPath) @@ -22,6 +40,7 @@ Item { RowLayout { anchors.fill: parent + anchors.margins: FishUI.Units.smallSpacing spacing: FishUI.Units.largeSpacing Image { diff --git a/src/qml/NetworkPage/main.qml b/src/qml/NetworkPage/main.qml index 335cb95..8312cc5 100644 --- a/src/qml/NetworkPage/main.qml +++ b/src/qml/NetworkPage/main.qml @@ -12,7 +12,7 @@ ItemPage { id: control headerTitle: qsTr("Network") - property var itemHeight: 50 + property var itemHeight: 45 property var settingsMap: ({}) NM.Handler { @@ -93,7 +93,7 @@ ItemPage { ListView { id: wiredView - visible: enabledConnections.wwanEnabled + visible: enabledConnections.wwanEnabled && wiredView.count > 0 Layout.fillWidth: true Layout.preferredHeight: wiredView.count * control.itemHeight diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index 6a28f19..e63b730 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -9,41 +9,32 @@ 关于 - - Built on - 构建在 - - - + System Version 系统版本 - + System Type 系统类型 - + Internal Storage 内部存储 - Software Version - 软件版本 - - - + Kernel Version 内核版本 - + Processor 处理器 - + RAM 内存大小 @@ -56,7 +47,7 @@ 用户 - + Add user 添加用户 @@ -64,45 +55,45 @@ AddUserDialog - + Add 添加 - + Cancel 取消 - - + + User name 用户名 - - + + Password 密码 - - + + Verify password 验证密码 - + Account type 类型 - + Standard 标准 - + Administrator 管理员 @@ -115,67 +106,67 @@ 外观 - + Theme 主题 - + Light 浅色模式 - + Dark 深色模式 - + Dim the wallpaper in dark theme 在深色模式下调暗壁纸 - + Accent color 强调色 - + Font 字体 - + General Font 常规字体 - + Fixed Font 固定字体 - + Font Size 字体大小 - + Small - + Medium - + Large - + Huge 巨大 @@ -241,22 +232,22 @@ 最近7天 - + History 历史 - + W 瓦特 - + Last Charged to 上一次充电至 - + Maximum Capacity 最大容量 @@ -287,37 +278,42 @@ 显示 - + Brightness 亮度 - + Screen 屏幕 - + Enabled 已开启 - + + Need to log in again to take effect + 需要重新登录才能生效 + + + Resolution 分辨率 - + Refresh rate 刷新率 - + Rotation 方向 - + Scale 缩放 @@ -330,81 +326,59 @@ 程序坞 - + Position on screen 屏幕上的位置 - + Left 左侧 - + Bottom 底部 - + Right 右侧 - + Size 尺寸 - + Small - + Medium - + Large - + Huge 巨大 - - Rounded window - 圆角 - LanguagePage - + Language 语言 - - NetworkPage - - - Network - 网络 - - - - Wired - 有线网络 - - - - Wi-Fi - 无线网络 - - SideBar @@ -432,10 +406,6 @@ User 用户 - - Bluetooth - 蓝牙 - Background @@ -465,102 +435,110 @@ 当前登录 - + Avatar 头像 - + Choose 选择 - + Automatic login 自动登陆 - + Delete this user 删除该用户 + + WifiItem + + + Password + 密码 + + + + Show password + 显示密码 + + + + Cancel + 取消 + + + + Connect + 连接 + + + + WifiView + + + WLAN + WLAN + + WirelessDetailsDialog - + Auto-Join 自动加入网络 - + Security 安全性 - + Signal 信号 - + IPv4 Address IPv4地址 - + IPv6 Address IPv6地址 - + MAC Address MAC地址 - + Gateway 路由器 - + DNS DNS - + Forget this network 忘记这个网络 - + Close 关闭 - - WirelessItem - - - Password - 密码 - - - - Show password - 显示密码 - - - - Connect - 连接 - - - - Cancel - 取消 - - main @@ -568,5 +546,15 @@ Settings 设置 + + + Network + 网络 + + + + Wired + 有线网络 +