From dfe47bde2fa379234d5239a7f8a72ad435f29366 Mon Sep 17 00:00:00 2001 From: mashiros <490328928@qq.com> Date: Fri, 8 Apr 2022 18:13:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E7=94=A8=E8=AF=AD=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=AD=E6=96=87=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Locales/zh.qm | Bin 0 -> 3369 bytes Locales/zh.ts | 306 ++++++++++++++++++++++++++++++++++++++++++++++++++ qml/TopUI.qml | 12 +- qml/WeatherWidget.qml | 6 +- 4 files changed, 316 insertions(+), 8 deletions(-) create mode 100644 Locales/zh.qm create mode 100644 Locales/zh.ts diff --git a/Locales/zh.qm b/Locales/zh.qm new file mode 100644 index 0000000000000000000000000000000000000000..a5728302fbb530b5a47d675b5e572ece886ad236 GIT binary patch literal 3369 zcma)8acmQ16#v>?ueYvc6K4i-F&}795+QS-m<5buDjd#V|lyg z_j~X6-uK@7zKs{eWmoTv4F0mB@!}hwj^FqKA>`Ye?QM;O5%PSGn4zb@-Z3rPhuYF3h&ktt{YSv@a__-S4-l$u z^PWHbD?;p7-uul@!tZ@mfByyXypJ%xtKg5zGod5@0`8`-dte{gaF4j!9A3DlnQM($GT6H!%^WFd#+DIrI&sR<|A z@g7Oc5N*CY=ELvy%aqQ=iKa<%rZ6AK4Xy8e%a&0vo)tu8k6TU#q37wHwbXmf3?VM< zB@O}fWNd0`K)1V~0BT0-ch-`-u@`8BQ1g2Hs!~*OYfee+(qs6#l>F?O^erPN^&k{p z9TqeV%9LoYfHM0|M&lI5gq56Ffe1v_^!~uJ_JXuZY6{%ZL$(G_zf@`=cL%4b*N~wR zcS{ASFK5)l0%!F?EZA=rFt>w`#%)RhTNGJy)}do8{NR84{ffurek!Q2WKCb#GyTEKPj7XD@=bgVYLBsu!}?Orbp)v#G50*>Z|l%$n# zo0LuymB=Zh(?dKFv@B6!$H7)IHfE4-inr*RZG~HEI59+9H-Q76d-qyeu?<08SV-;4 zs7g^5=SIPS8Pu7xDNy-KE$o>j^j>k`yDSSQ7X+<> zPrnd=I9NaTectKDl+#=_|#Ml#`P_(~Ol8YK~Q_i?8 zHU}AXv(JZ~)wz1x)1lG6+-4>enrzG5!6%`3!(^q3b?O?;T|{o^;w()s})6p1(@fYB4>=RwQkC6Ys9vH z9i#>2)ydI$%V&8P*_|iw#4D- + + + + BottomUI + + + Ordinal Scale Bottom UI widget + 序列之争底部UI挂件 + + + + + Settings + 设置 + + + + UI Settings + UI设置 + + + + Configuration + 配置项 + + + + Line Color + 线条颜色 + + + + Line Width + 线宽 + + + + Shadow Color + 阴影颜色 + + + + Shadow Size + 阴影大小 + + + + TopUI + + + Ordinal Scale Top UI widget + 序列之争顶部UI挂件 + + + + Light + 细体 + + + + Normal + 常规 + + + + Bold + 粗体 + + + + + Settings + 设置 + + + + UI Settings + UI设置 + + + + Configuration + 设置项 + + + + Circle Color + 中心圆颜色 + + + + Line Color + 线条颜色 + + + + Line Width + 线宽 + + + + Shadow Color + 阴影颜色 + + + + Shadow Size + 阴影大小 + + + + Battle UI + 战斗UI + + + + Clock Visible + 显示时间 + + + + 24 Hour Clock + 24小时制 + + + + Font Color + 字体颜色 + + + + Font Size + 字体大小 + + + + Font Style + 字体样式 + + + + Font Weight + 字体粗细 + + + + Text Vertical Offset + 文字垂直偏移 + + + + WeatherWidget + + + Ordinal Scale Weather Widget + Weather Widget + 序列之争天气挂件 + + + + Light + 细体 + + + + Normal + 常规 + + + + Bold + 粗体 + + + + + + Settings + 设置 + + + + Refresh + 刷新 + + + + Configuration + 配置项 + + + + Location + 位置 + + + + Search address by location, latitude and longitude. + 按地址、经纬度搜索地址。 + + + + Display Location + 显示地址 + + + + The location to display in widget. + 在挂件中显示的位置。 + + + + Update Interval + 更新间隔 + + + + + Minutes + 分钟 + + + + + Hours + 小时 + + + + Unit + 单位 + + + + Background Color + 背景颜色 + + + + Background Opacity + 背景不透明度 + + + + Area Opacity Difference + 区域不透明度差异 + + + + Icon Color + 图标颜色 + + + + Temperature Text Settings + 温度文字设置 + + + + + Font Color + 字体颜色 + + + + + Font Size + 字体大小 + + + + + Font Style + 字体样式 + + + + + Font Weight + 字体粗细 + + + + + X Offset + X偏移量 + + + + + Y Offset + Y偏移量 + + + + Area Text Settings + 地区文字设置 + + + + Border Margin + 边距 + + + diff --git a/qml/TopUI.qml b/qml/TopUI.qml index 4a6632f..83d3a32 100644 --- a/qml/TopUI.qml +++ b/qml/TopUI.qml @@ -18,7 +18,11 @@ T.Widget { property real tmin: 0 editing: styleDialog.active - readonly property var configs: widget.settings.styles ? widget.settings.styles : {"Circle Color":"#fffcf9","Line Color":"#fffcf9","Line Width":38,"Shadow Color":"#e0e0e0","Shadow Size":0.5,"Battle UI":false,"Clock Visible":true,"Full Clock":true,"Font Color":"#f5f5f5","Font Size":44,"Font Name":0,"Font Weight":0,"Text Vertical Offset":16} + readonly property var fonts: Qt.fontFamilies() + readonly property var fontweight: [Font.Light, Font.Normal, Font.Bold] + readonly property var sfontweight: [qsTr("Light"), qsTr("Normal"), qsTr("Bold")] + + readonly property var configs: widget.settings.styles ? widget.settings.styles : {"Circle Color":"#fffcf9","Line Color":"#fffcf9","Line Width":38,"Shadow Color":"#e0e0e0","Shadow Size":0.5,"Battle UI":false,"Clock Visible":true,"Full Clock":true,"Font Color":"#f5f5f5","Font Size":44,"Font Name":fonts.length-1,"Font Weight":0,"Text Vertical Offset":16} property string circle_color: configs["Circle Color"] property string line_color: configs["Line Color"] @@ -30,10 +34,6 @@ T.Widget { readonly property real w: widget.width readonly property real r: (w**2+h**2)/4/h - readonly property var fonts: Qt.fontFamilies() - readonly property var fontweight: [Font.Light, Font.Normal, Font.Bold] - readonly property var sfontweight: [qsTr("Light"), qsTr("Normal"), qsTr("Bold")] - Timer { interval: 250 running: text_clock.visible @@ -464,7 +464,7 @@ T.Widget { visible: !_cfg_battle_ui.value enabled: visible && _cfg_clock_visible.value icon.name: "solid:\uf1fc" - defaultValue: 0 + defaultValue: fonts.length-1 model: fonts } diff --git a/qml/WeatherWidget.qml b/qml/WeatherWidget.qml index 34c522d..c1b8a2e 100644 --- a/qml/WeatherWidget.qml +++ b/qml/WeatherWidget.qml @@ -16,7 +16,7 @@ import "utils.js" as Utils T.Widget { id: widget - title: qsTr("Weather Widget") + title: qsTr("Ordinal Scale Weather Widget") solid: true readonly property var fonts: Qt.fontFamilies() @@ -303,7 +303,7 @@ T.Widget { P.TextFieldPreference { name: "Display Location" label: qsTr("Display Location") - message: "The location to display in widget." + message: qsTr("The location to display in widget.") } P.DialogPreference { @@ -362,6 +362,8 @@ T.Widget { defaultValue: "#fefefe" } + P.Separator {} + P.DialogPreference { name: "Temperature Text Settings" label: qsTr("Temperature Text Settings")