!74 登录锁屏BUG自测修复

Merge pull request !74 from liudunfa/openkylin/nile
This commit is contained in:
杨敏 2024-03-09 08:27:46 +00:00 committed by Gitee
commit 7dfe944edf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
34 changed files with 685 additions and 255 deletions

View File

@ -148,17 +148,17 @@
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2033"/> <location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/> <location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation>FingerVein</translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/> <location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation>Iris</translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/> <location filename="../src/widgets/authdialog.cpp" line="2039"/>
@ -172,13 +172,40 @@
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/> <location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/> <location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"></translation> <translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2056"/>
<source>fingerprint</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2058"/>
<source>fingervein</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2060"/>
<source>iris</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2062"/>
<source>face</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2064"/>
<source>voiceprint</source>
<translation></translation>
</message> </message>
<message> <message>
<source>Use the bound wechat scanning code or enter the password to log in</source> <source>Use the bound wechat scanning code or enter the password to log in</source>
@ -285,25 +312,25 @@
<location filename="../src/widgets/batterywidget.cpp" line="114"/> <location filename="../src/widgets/batterywidget.cpp" line="114"/>
<location filename="../src/widgets/batterywidget.cpp" line="144"/> <location filename="../src/widgets/batterywidget.cpp" line="144"/>
<source>Charging...</source> <source>Charging...</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="116"/> <location filename="../src/widgets/batterywidget.cpp" line="116"/>
<location filename="../src/widgets/batterywidget.cpp" line="146"/> <location filename="../src/widgets/batterywidget.cpp" line="146"/>
<source>fully charged</source> <source>fully charged</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="120"/> <location filename="../src/widgets/batterywidget.cpp" line="120"/>
<location filename="../src/widgets/batterywidget.cpp" line="150"/> <location filename="../src/widgets/batterywidget.cpp" line="150"/>
<source>PowerMode</source> <source>PowerMode</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="123"/> <location filename="../src/widgets/batterywidget.cpp" line="123"/>
<location filename="../src/widgets/batterywidget.cpp" line="153"/> <location filename="../src/widgets/batterywidget.cpp" line="153"/>
<source>BatteryMode</source> <source>BatteryMode</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -381,34 +408,34 @@
<location filename="../src/widgets/blockwidget.cpp" line="99"/> <location filename="../src/widgets/blockwidget.cpp" line="99"/>
<location filename="../src/widgets/blockwidget.cpp" line="152"/> <location filename="../src/widgets/blockwidget.cpp" line="152"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/> <location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/> <location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/> <location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source> <source>Confrim</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/> <location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source> <source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/> <location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source> <source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/> <location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source> <source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/> <location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source> <source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -1679,17 +1706,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source> <source>Suspended state</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source> <source>Close</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source> <source>Welt status</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -1977,7 +2004,7 @@
<message> <message>
<location filename="../src/widgets/lockwidget.cpp" line="1022"/> <location filename="../src/widgets/lockwidget.cpp" line="1022"/>
<source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source> <source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source>
<translation type="unfinished"></translation> <translation> %1</translation>
</message> </message>
</context> </context>
<context> <context>
@ -2001,37 +2028,37 @@
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Wechat</source> <source>Wechat</source>
@ -2055,12 +2082,12 @@
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source> <source>LAN</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source> <source>WLAN</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2233,51 +2260,52 @@
<context> <context>
<name>PowerListWidget</name> <name>PowerListWidget</name>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="164"/> <location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="81"/> <location filename="../src/widgets/powerlistwidget.h" line="81"/>
<source>Hibernate</source> <source>Hibernate</source>
<translation type="unfinished"></translation> <translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="165"/>
<location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation type="unfinished"> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="168"/>
<location filename="../src/widgets/powerlistwidget.h" line="94"/>
<source>Suspend</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="169"/>
<location filename="../src/widgets/powerlistwidget.cpp" line="173"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation type="unfinished"> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="172"/>
<location filename="../src/widgets/powerlistwidget.h" line="107"/>
<source>Restart</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="119"/>
<source>Shut Down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Power Off</source>
<translation type="obsolete"></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="177"/> <location filename="../src/widgets/powerlistwidget.cpp" line="177"/>
<location filename="../src/widgets/powerlistwidget.h" line="120"/> <location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="179"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>Suspend</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="180"/>
<location filename="../src/widgets/powerlistwidget.h" line="96"/>
<location filename="../src/widgets/powerlistwidget.h" line="110"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="182"/>
<location filename="../src/widgets/powerlistwidget.h" line="109"/>
<source>Restart</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="183"/>
<source>Close all apps, and then restart your computer</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="185"/>
<location filename="../src/widgets/powerlistwidget.h" line="123"/>
<source>Power Off</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="186"/>
<location filename="../src/widgets/powerlistwidget.h" line="124"/>
<source>Close all apps, and then shut down your computer</source> <source>Close all apps, and then shut down your computer</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/> <location filename="../src/widgets/powerlistwidget.h" line="108"/>
@ -2337,7 +2365,7 @@
</message> </message>
<message> <message>
<source>Shut Down</source> <source>Shut Down</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source> <source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>

View File

@ -143,42 +143,69 @@
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="1772"/> <location filename="../src/widgets/authdialog.cpp" line="1772"/>
<source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source> <source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2033"/> <location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/> <location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/> <location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/> <location filename="../src/widgets/authdialog.cpp" line="2039"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2041"/> <location filename="../src/widgets/authdialog.cpp" line="2041"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/> <location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/> <location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2056"/>
<source>fingerprint</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2058"/>
<source>fingervein</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2060"/>
<source>iris</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2062"/>
<source>face</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2064"/>
<source>voiceprint</source>
<translation> </translation>
</message> </message>
<message> <message>
<source>Use the bound wechat scanning code or enter the password to log in</source> <source>Use the bound wechat scanning code or enter the password to log in</source>
@ -285,25 +312,25 @@
<location filename="../src/widgets/batterywidget.cpp" line="114"/> <location filename="../src/widgets/batterywidget.cpp" line="114"/>
<location filename="../src/widgets/batterywidget.cpp" line="144"/> <location filename="../src/widgets/batterywidget.cpp" line="144"/>
<source>Charging...</source> <source>Charging...</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="116"/> <location filename="../src/widgets/batterywidget.cpp" line="116"/>
<location filename="../src/widgets/batterywidget.cpp" line="146"/> <location filename="../src/widgets/batterywidget.cpp" line="146"/>
<source>fully charged</source> <source>fully charged</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="120"/> <location filename="../src/widgets/batterywidget.cpp" line="120"/>
<location filename="../src/widgets/batterywidget.cpp" line="150"/> <location filename="../src/widgets/batterywidget.cpp" line="150"/>
<source>PowerMode</source> <source>PowerMode</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/batterywidget.cpp" line="123"/> <location filename="../src/widgets/batterywidget.cpp" line="123"/>
<location filename="../src/widgets/batterywidget.cpp" line="153"/> <location filename="../src/widgets/batterywidget.cpp" line="153"/>
<source>BatteryMode</source> <source>BatteryMode</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
</context> </context>
<context> <context>
@ -381,34 +408,34 @@
<location filename="../src/widgets/blockwidget.cpp" line="99"/> <location filename="../src/widgets/blockwidget.cpp" line="99"/>
<location filename="../src/widgets/blockwidget.cpp" line="152"/> <location filename="../src/widgets/blockwidget.cpp" line="152"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/> <location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/> <location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/> <location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source> <source>Confrim</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/> <location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source> <source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/> <location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source> <source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/> <location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source> <source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"> !</translation> <translation> !</translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/> <location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source> <source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"> !</translation> <translation> !</translation>
</message> </message>
</context> </context>
<context> <context>
@ -1674,17 +1701,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source> <source>Suspended state</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source> <source>Close</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source> <source>Welt status</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
</context> </context>
<context> <context>
@ -1980,7 +2007,7 @@
<message> <message>
<location filename="../src/widgets/lockwidget.cpp" line="1022"/> <location filename="../src/widgets/lockwidget.cpp" line="1022"/>
<source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source> <source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source>
<translation type="unfinished"></translation> <translation> %1 ?</translation>
</message> </message>
</context> </context>
<context> <context>
@ -2004,37 +2031,37 @@
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message> </message>
<message> <message>
<source>Wechat</source> <source>Wechat</source>
@ -2058,12 +2085,12 @@
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source> <source>LAN</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source> <source>WLAN</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message> </message>
</context> </context>
<context> <context>
@ -2236,47 +2263,52 @@
<context> <context>
<name>PowerListWidget</name> <name>PowerListWidget</name>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="164"/> <location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="81"/> <location filename="../src/widgets/powerlistwidget.h" line="81"/>
<source>Hibernate</source> <source>Hibernate</source>
<translation type="unfinished"></translation> <translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="165"/>
<location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation type="unfinished"> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="168"/>
<location filename="../src/widgets/powerlistwidget.h" line="94"/>
<source>Suspend</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="169"/>
<location filename="../src/widgets/powerlistwidget.cpp" line="173"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation type="unfinished"> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="172"/>
<location filename="../src/widgets/powerlistwidget.h" line="107"/>
<source>Restart</source>
<translation type="unfinished"> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="119"/>
<source>Shut Down</source>
<translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="177"/> <location filename="../src/widgets/powerlistwidget.cpp" line="177"/>
<location filename="../src/widgets/powerlistwidget.h" line="120"/> <location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="179"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>Suspend</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="180"/>
<location filename="../src/widgets/powerlistwidget.h" line="96"/>
<location filename="../src/widgets/powerlistwidget.h" line="110"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="182"/>
<location filename="../src/widgets/powerlistwidget.h" line="109"/>
<source>Restart</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="183"/>
<source>Close all apps, and then restart your computer</source>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="185"/>
<location filename="../src/widgets/powerlistwidget.h" line="123"/>
<source>Power Off</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="186"/>
<location filename="../src/widgets/powerlistwidget.h" line="124"/>
<source>Close all apps, and then shut down your computer</source> <source>Close all apps, and then shut down your computer</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Power Off</source> <source>Power Off</source>
@ -2285,7 +2317,7 @@
<message> <message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/> <location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source> <source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"> </translation> <translation> </translation>
</message> </message>
</context> </context>
<context> <context>
@ -2340,7 +2372,7 @@
</message> </message>
<message> <message>
<source>Shut Down</source> <source>Shut Down</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source> <source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>

View File

@ -172,14 +172,41 @@
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/> <location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source> <source>Ukey</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/> <location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<source>QRCode</source> <source>QRCode</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2056"/>
<source>fingerprint</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2058"/>
<source>fingervein</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2060"/>
<source>iris</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2062"/>
<source>face</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2064"/>
<source>voiceprint</source>
<translation></translation>
</message>
<message> <message>
<source>Use the bound wechat scanning code or enter the password to log in</source> <source>Use the bound wechat scanning code or enter the password to log in</source>
<translation type="vanished">使</translation> <translation type="vanished">使</translation>
@ -1670,17 +1697,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source> <source>Suspended state</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source> <source>Close</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source> <source>Welt status</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2209,56 +2236,57 @@
<context> <context>
<name>PowerListWidget</name> <name>PowerListWidget</name>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="164"/> <location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="81"/> <location filename="../src/widgets/powerlistwidget.h" line="81"/>
<source>Hibernate</source> <source>Hibernate</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="165"/> <location filename="../src/widgets/powerlistwidget.cpp" line="177"/>
<location filename="../src/widgets/powerlistwidget.h" line="82"/> <location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source> <source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="168"/> <location filename="../src/widgets/powerlistwidget.cpp" line="179"/>
<location filename="../src/widgets/powerlistwidget.h" line="94"/> <location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>Suspend</source> <source>Suspend</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="169"/> <location filename="../src/widgets/powerlistwidget.cpp" line="180"/>
<location filename="../src/widgets/powerlistwidget.cpp" line="173"/> <location filename="../src/widgets/powerlistwidget.h" line="96"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/> <location filename="../src/widgets/powerlistwidget.h" line="110"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source> <source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="172"/> <location filename="../src/widgets/powerlistwidget.cpp" line="182"/>
<location filename="../src/widgets/powerlistwidget.h" line="107"/> <location filename="../src/widgets/powerlistwidget.h" line="109"/>
<source>Restart</source> <source>Restart</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="176"/> <location filename="../src/widgets/powerlistwidget.cpp" line="183"/>
<location filename="../src/widgets/powerlistwidget.h" line="119"/> <source>Close all apps, and then restart your computer</source>
<source>Shut Down</source> <translation></translation>
<translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="185"/>
<location filename="../src/widgets/powerlistwidget.h" line="123"/>
<source>Power Off</source> <source>Power Off</source>
<translation type="vanished"></translation> <translation type="vanished"></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="177"/> <location filename="../src/widgets/powerlistwidget.cpp" line="186"/>
<location filename="../src/widgets/powerlistwidget.h" line="120"/> <location filename="../src/widgets/powerlistwidget.h" line="124"/>
<source>Close all apps, and then shut down your computer</source> <source>Close all apps, and then shut down your computer</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/> <location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source> <source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2313,7 +2341,7 @@
</message> </message>
<message> <message>
<source>Shut Down</source> <source>Shut Down</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source> <source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
@ -2351,37 +2379,37 @@
<message> <message>
<location filename="../src/common/biodefines.cpp" line="28"/> <location filename="../src/common/biodefines.cpp" line="28"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="30"/> <location filename="../src/common/biodefines.cpp" line="30"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="32"/> <location filename="../src/common/biodefines.cpp" line="32"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="34"/> <location filename="../src/common/biodefines.cpp" line="34"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="36"/> <location filename="../src/common/biodefines.cpp" line="36"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="38"/> <location filename="../src/common/biodefines.cpp" line="38"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="40"/> <location filename="../src/common/biodefines.cpp" line="40"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2729,5 +2757,15 @@
<source>window id</source> <source>window id</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="../src/lock-backend/main.cpp" line="50"/>
<source>Backend for the ukui ScreenSaver.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/lock-backend/main.cpp" line="56"/>
<source>lock the screen by startup</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
</TS> </TS>

View File

@ -143,42 +143,69 @@
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="1772"/> <location filename="../src/widgets/authdialog.cpp" line="1772"/>
<source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source> <source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2033"/> <location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/> <location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/> <location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/> <location filename="../src/widgets/authdialog.cpp" line="2039"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2041"/> <location filename="../src/widgets/authdialog.cpp" line="2041"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/> <location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/> <location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"></translation> <translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2056"/>
<source>fingerprint</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2058"/>
<source>fingervein</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2060"/>
<source>iris</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2062"/>
<source>face</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2064"/>
<source>voiceprint</source>
<translation></translation>
</message> </message>
<message> <message>
<source>Use the bound wechat scanning code or enter the password to log in</source> <source>Use the bound wechat scanning code or enter the password to log in</source>
@ -381,34 +408,34 @@
<location filename="../src/widgets/blockwidget.cpp" line="99"/> <location filename="../src/widgets/blockwidget.cpp" line="99"/>
<location filename="../src/widgets/blockwidget.cpp" line="152"/> <location filename="../src/widgets/blockwidget.cpp" line="152"/>
<source>Cancel</source> <source>Cancel</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/> <location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/> <location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/> <location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source> <source>Confrim</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/> <location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source> <source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/> <location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source> <source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/> <location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source> <source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/> <location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source> <source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -430,7 +457,7 @@
<message> <message>
<location filename="../src/VirtualKeyboard/src/charswidget.cpp" line="129"/> <location filename="../src/VirtualKeyboard/src/charswidget.cpp" line="129"/>
<source>ABC</source> <source>ABC</source>
<translation></translation> <translation>ABC</translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/charswidget.cpp" line="142"/> <location filename="../src/VirtualKeyboard/src/charswidget.cpp" line="142"/>
@ -1674,17 +1701,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source> <source>Suspended state</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source> <source>Close</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/> <location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source> <source>Welt status</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -1973,7 +2000,7 @@
<message> <message>
<location filename="../src/widgets/lockwidget.cpp" line="1022"/> <location filename="../src/widgets/lockwidget.cpp" line="1022"/>
<source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source> <source>Multiple users are logged in at the same time.Are you sure you want to %1 this system?</source>
<translation type="unfinished"></translation> <translation>, %1 </translation>
</message> </message>
</context> </context>
<context> <context>
@ -1997,37 +2024,37 @@
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source> <source>FingerPrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source> <source>FingerVein</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source> <source>Iris</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source> <source>Face</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source> <source>VoicePrint</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/> <location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source> <source>QRCode</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Wechat</source> <source>Wechat</source>
@ -2051,12 +2078,12 @@
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source> <source>LAN</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/> <location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source> <source>WLAN</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2229,56 +2256,57 @@
<context> <context>
<name>PowerListWidget</name> <name>PowerListWidget</name>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="164"/> <location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="81"/> <location filename="../src/widgets/powerlistwidget.h" line="81"/>
<source>Hibernate</source> <source>Hibernate</source>
<translation type="unfinished"></translation> <translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="165"/>
<location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="168"/>
<location filename="../src/widgets/powerlistwidget.h" line="94"/>
<source>Suspend</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="169"/>
<location filename="../src/widgets/powerlistwidget.cpp" line="173"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="172"/>
<location filename="../src/widgets/powerlistwidget.h" line="107"/>
<source>Restart</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="119"/>
<source>Shut Down</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Power Off</source>
<translation type="obsolete"></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.cpp" line="177"/> <location filename="../src/widgets/powerlistwidget.cpp" line="177"/>
<location filename="../src/widgets/powerlistwidget.h" line="120"/> <location filename="../src/widgets/powerlistwidget.h" line="82"/>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="179"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<source>Suspend</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="180"/>
<location filename="../src/widgets/powerlistwidget.h" line="96"/>
<location filename="../src/widgets/powerlistwidget.h" line="110"/>
<source>The computer stays on, but consumes less power. The app stays open and can quickly wake up and revert to where you left off</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="182"/>
<location filename="../src/widgets/powerlistwidget.h" line="109"/>
<source>Restart</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="183"/>
<source>Close all apps, and then restart your computer</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="185"/>
<location filename="../src/widgets/powerlistwidget.h" line="123"/>
<source>Power Off</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="186"/>
<location filename="../src/widgets/powerlistwidget.h" line="124"/>
<source>Close all apps, and then shut down your computer</source> <source>Close all apps, and then shut down your computer</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/> <location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source> <source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>
@ -2333,7 +2361,7 @@
</message> </message>
<message> <message>
<source>Shut Down</source> <source>Shut Down</source>
<translation type="vanished"></translation> <translation></translation>
</message> </message>
<message> <message>
<source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source> <source>Turn off your computer, but the app stays open. When the computer is turned on, it can be restored to the state you left</source>
@ -2396,7 +2424,7 @@
<message> <message>
<location filename="../src/common/biodefines.cpp" line="38"/> <location filename="../src/common/biodefines.cpp" line="38"/>
<source>Ukey</source> <source>Ukey</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../src/common/biodefines.cpp" line="40"/> <location filename="../src/common/biodefines.cpp" line="40"/>

View File

@ -167,6 +167,7 @@ typedef enum _LOCK_CMD_ID_e
#define KEY_SYSTEM_FONT_SIZE "systemFontSize" #define KEY_SYSTEM_FONT_SIZE "systemFontSize"
#define GLIB_KEY_SYSTEM_FONT_SIZE "system-font-size" #define GLIB_KEY_SYSTEM_FONT_SIZE "system-font-size"
#define KEY_THEME_COLOR "themeColor" #define KEY_THEME_COLOR "themeColor"
#define KEY_SYSTEM_FONT "systemFont"
#define GSETTINGS_SCHEMA_SESSION "org.ukui.session" #define GSETTINGS_SCHEMA_SESSION "org.ukui.session"
#define KEY_SESSION_IDLE "idleDelay" #define KEY_SESSION_IDLE "idleDelay"

View File

@ -412,6 +412,8 @@ void GSettingsHelper::onThemeStyleConfigChanged(QString strKey)
varValue = m_lfFontSize = m_gsThemeStyle->get(KEY_SYSTEM_FONT_SIZE).toDouble(); varValue = m_lfFontSize = m_gsThemeStyle->get(KEY_SYSTEM_FONT_SIZE).toDouble();
} else if (strKey == KEY_THEME_COLOR) { } else if (strKey == KEY_THEME_COLOR) {
varValue = m_strThemeColor = m_gsThemeStyle->get(KEY_THEME_COLOR).toString(); varValue = m_strThemeColor = m_gsThemeStyle->get(KEY_THEME_COLOR).toString();
} else if (strKey == KEY_SYSTEM_FONT) {
varValue = m_font = m_gsThemeStyle->get(KEY_SYSTEM_FONT).toString();
} }
Q_EMIT themeStyleConfigChanged(strKey, varValue); Q_EMIT themeStyleConfigChanged(strKey, varValue);
} }

View File

@ -134,6 +134,7 @@ private:
double m_lfFontSize = 0.0; double m_lfFontSize = 0.0;
QString m_strThemeColor; QString m_strThemeColor;
QString m_font;
int m_nSessionIdle = -1; int m_nSessionIdle = -1;

View File

@ -390,6 +390,10 @@ void LockDialogModel::onThemeStyleConfChanged(const QString &key, QVariant value
{ {
if (key == KEY_SYSTEM_FONT_SIZE) { if (key == KEY_SYSTEM_FONT_SIZE) {
m_curFontSize = value.toDouble(); m_curFontSize = value.toDouble();
double defaultFontSize = getDefaultFontSize();
Q_EMIT fontSizeChanged(m_curFontSize - defaultFontSize);
} else if (key == KEY_SYSTEM_FONT) {
Q_EMIT fontChanged(value.toString());
} }
} }

View File

@ -366,6 +366,10 @@ Q_SIGNALS:
void tabletModeChanged(bool tabletMode); void tabletModeChanged(bool tabletMode);
void fontSizeChanged(double fontSize);
void fontChanged(QString font);
private: private:
QString getXScreensaverPath(const QString &theme); QString getXScreensaverPath(const QString &theme);
private: private:

View File

@ -66,6 +66,9 @@ void SCConfiguration::onConfigurationChanged(QString key, QVariant value)
}else if(key == "backgroundPath"){ }else if(key == "backgroundPath"){
QString path = value.toString(); QString path = value.toString();
Q_EMIT backgroundPathChanged(path); Q_EMIT backgroundPathChanged(path);
}else if(key == "background"){
QString path = value.toString();
Q_EMIT backgroundChanged(path);
}else if(key == "mytext"){ }else if(key == "mytext"){
QString text = value.toString(); QString text = value.toString();
Q_EMIT myTextChanged(text); Q_EMIT myTextChanged(text);

View File

@ -68,6 +68,7 @@ Q_SIGNALS:
void cycleTimeChanged(int cycleTime); void cycleTimeChanged(int cycleTime);
bool autoSwitchChanged(bool changed); bool autoSwitchChanged(bool changed);
QString backgroundPathChanged(QString path); QString backgroundPathChanged(QString path);
QString backgroundChanged(QString path);
QString myTextChanged(QString text); QString myTextChanged(QString text);
bool showCRestTimeChanged(bool isShow); bool showCRestTimeChanged(bool isShow);
bool showURestTimeChanged(bool isShow); bool showURestTimeChanged(bool isShow);

View File

@ -151,7 +151,7 @@ void Screensaver::getConfiguration()
textIsCenter = configuration->getTextIsCenter(); textIsCenter = configuration->getTextIsCenter();
myText = configuration->getMyText(); myText = configuration->getMyText();
}else }else
isUShowRestTime = configuration->getUShowRestTime(); isUShowRestTime = configuration->getUShowRestTime();
curFontSize = configuration->getFontSize(); curFontSize = configuration->getFontSize();
m_ptToPx = configuration->getPtToPx(); m_ptToPx = configuration->getPtToPx();
@ -168,6 +168,8 @@ void Screensaver::connectSingles()
this, &Screensaver::autoSwitchChanged); this, &Screensaver::autoSwitchChanged);
connect(configuration, &SCConfiguration::backgroundPathChanged, connect(configuration, &SCConfiguration::backgroundPathChanged,
this, &Screensaver::backgroundPathChanged); this, &Screensaver::backgroundPathChanged);
connect(configuration, &SCConfiguration::backgroundChanged,
this, &Screensaver::backgroundChanged);
connect(configuration, &SCConfiguration::cycleTimeChanged, connect(configuration, &SCConfiguration::cycleTimeChanged,
this, &Screensaver::cycleTimeChanged); this, &Screensaver::cycleTimeChanged);
connect(configuration, &SCConfiguration::myTextChanged, connect(configuration, &SCConfiguration::myTextChanged,
@ -254,6 +256,11 @@ void Screensaver::backgroundPathChanged(QString path)
startSwitchImages(); startSwitchImages();
} }
void Screensaver::backgroundChanged(QString path)
{
background = loadFromFile(path);
}
void Screensaver::cycleTimeChanged(int cTime) void Screensaver::cycleTimeChanged(int cTime)
{ {
cycleTime = cTime; cycleTime = cTime;

View File

@ -194,6 +194,7 @@ private Q_SLOTS:
void updateTime(); void updateTime();
void autoSwitchChanged(bool iswitch); void autoSwitchChanged(bool iswitch);
void backgroundPathChanged(QString path); void backgroundPathChanged(QString path);
void backgroundChanged(QString path);
void cycleTimeChanged(int cTime); void cycleTimeChanged(int cTime);
void myTextChanged(QString text); void myTextChanged(QString text);
void showCRestTimeChanged(bool isShow); void showCRestTimeChanged(bool isShow);

View File

@ -217,6 +217,50 @@ void AuthDialog::updateAuthSize()
updateUI(); updateUI();
} }
void AuthDialog::updateAuthFont(QString fontFamily)
{
if (m_labelLoginTypeTip) {
m_labelLoginTypeTip->setFontFamily(fontFamily);
}
if (m_ukeyMessageLabel) {
m_ukeyMessageLabel->setFontFamily(fontFamily);
}
if (m_nameLabel) {
m_nameLabel->setFontFamily(fontFamily);
}
if (m_messageLabel) {
m_messageLabel->setFontFamily(fontFamily);
}
if (m_loginOpts) {
m_loginOpts->updateLoginOptionFont(fontFamily);
}
if (m_labelQRCodeMsg) {
m_labelQRCodeMsg->setFontFamily(fontFamily);
}
}
void AuthDialog::updateAuthFontSize(double fontSize)
{
if (m_labelLoginTypeTip) {
m_labelLoginTypeTip->setFontSize((14 + fontSize)*m_ptToPx);
}
if (m_ukeyMessageLabel) {
m_ukeyMessageLabel->setFontSize((14 + fontSize)*m_ptToPx);
}
if (m_nameLabel) {
m_nameLabel->setFontSize((24 + fontSize)*m_ptToPx);
}
if (m_messageLabel) {
m_messageLabel->setFontSize((14 + fontSize)*m_ptToPx);
}
if (m_loginOpts) {
m_loginOpts->updateLoginOptionFontSize(fontSize);
}
if (m_labelQRCodeMsg) {
m_labelQRCodeMsg->setFontSize((14 + fontSize)*m_ptToPx);
}
}
void AuthDialog::initTipWidget() void AuthDialog::initTipWidget()
{ {
QVBoxLayout *tipLayout = new QVBoxLayout(m_tipWidget); QVBoxLayout *tipLayout = new QVBoxLayout(m_tipWidget);
@ -1435,9 +1479,9 @@ void AuthDialog::performBiometricAuth()
if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes) if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes)
{ {
if (m_deviceInfo->deviceType == UniT_Remote) { if (m_deviceInfo->deviceType == UniT_Remote) {
setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
} else { } else {
setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
if (m_deviceInfo->deviceType == BioT_Face) { if (m_deviceInfo->deviceType == BioT_Face) {
QImage imgFailed; QImage imgFailed;
setFaceImg(imgFailed, 1); setFaceImg(imgFailed, 1);
@ -1587,9 +1631,9 @@ void AuthDialog::onLoginOptsCount(unsigned uCount)
if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes) if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes)
{ {
if (m_deviceInfo->deviceType == UniT_Remote) { if (m_deviceInfo->deviceType == UniT_Remote) {
setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
} else { } else {
setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
if (m_deviceInfo->deviceType == BioT_Face) { if (m_deviceInfo->deviceType == BioT_Face) {
QImage imgFailed; QImage imgFailed;
setFaceImg(imgFailed, 1); setFaceImg(imgFailed, 1);
@ -1728,13 +1772,13 @@ void AuthDialog::onBiometricAuthComplete(bool result, int nStatus)
} }
if(m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes){ if(m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes){
if (m_deviceInfo->deviceType == UniT_Remote) { if (m_deviceInfo->deviceType == UniT_Remote) {
setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
QImage nullImage; QImage nullImage;
setQRCode(nullImage); setQRCode(nullImage);
}else if(m_deviceInfo->deviceType == LOGINOPT_TYPE_GENERAL_UKEY){ }else if(m_deviceInfo->deviceType == LOGINOPT_TYPE_GENERAL_UKEY){
setUkeyTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setUkeyTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
}else { }else {
setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
} }
if(m_loginOpts) if(m_loginOpts)
m_loginOpts->setDeviceDisable(m_deviceInfo->id, true); m_loginOpts->setDeviceDisable(m_deviceInfo->id, true);
@ -1752,7 +1796,7 @@ void AuthDialog::onBiometricAuthComplete(bool result, int nStatus)
.arg(maxFailedTimes-m_failMap[m_curUserInfo->uid()][m_deviceInfo->id])); .arg(maxFailedTimes-m_failMap[m_curUserInfo->uid()][m_deviceInfo->id]));
}else { }else {
setLoginTypeTip(tr("Failed to verify %1, you still have %2 verification opportunities") setLoginTypeTip(tr("Failed to verify %1, you still have %2 verification opportunities")
.arg(getDeviceType_tr(m_deviceInfo->deviceType)) .arg(getDeviceType_lowerTr(m_deviceInfo->deviceType))
.arg(maxFailedTimes-m_failMap[m_curUserInfo->uid()][m_deviceInfo->id])); .arg(maxFailedTimes-m_failMap[m_curUserInfo->uid()][m_deviceInfo->id]));
} }
} }
@ -1905,9 +1949,9 @@ void AuthDialog::onBiometricDbusChanged(bool bActive)
//已经错误超过3次 //已经错误超过3次
if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes) { if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes) {
if (m_deviceInfo->deviceType == UniT_Remote) { if (m_deviceInfo->deviceType == UniT_Remote) {
setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Failed to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
} else { } else {
setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_tr(m_deviceInfo->deviceType))); setLoginTypeTip(tr("Unable to verify %1, please enter password to unlock").arg(getDeviceType_lowerTr(m_deviceInfo->deviceType)));
if (m_deviceInfo->deviceType == BioT_Face) { if (m_deviceInfo->deviceType == BioT_Face) {
QImage imgFailed; QImage imgFailed;
setFaceImg(imgFailed, 1); setFaceImg(imgFailed, 1);
@ -2047,3 +2091,27 @@ QString AuthDialog::getDeviceType_tr(int deviceType)
return ""; return "";
} }
} }
QString AuthDialog::getDeviceType_lowerTr(int deviceType)
{
switch(deviceType)
{
case BioT_FingerPrint:
return tr("fingerprint");
case BioT_FingerVein:
return tr("fingervein");
case BioT_Iris:
return tr("iris");
case BioT_Face:
return tr("face");
case BioT_VoicePrint:
return tr("voiceprint");
case UniT_General_Ukey:
return tr("Ukey");
case UniT_Remote:
return tr("QRCode");
default:
return "";
}
}

View File

@ -68,6 +68,10 @@ public:
*/ */
void setCustomAuthDefault(bool isDefault); void setCustomAuthDefault(bool isDefault);
void updateAuthFont(QString fontFamily);
void updateAuthFontSize(double fontSize);
private Q_SLOTS: private Q_SLOTS:
void onPamShowMessage(QString strMsg, int nType); void onPamShowMessage(QString strMsg, int nType);
void onPamShowPrompt(QString strPrompt, int nType); void onPamShowPrompt(QString strPrompt, int nType);
@ -160,6 +164,7 @@ private:
void restartBioAuth(); void restartBioAuth();
void waitBiometricServiceStatus(); void waitBiometricServiceStatus();
QString getDeviceType_tr(int deviceType); QString getDeviceType_tr(int deviceType);
QString getDeviceType_lowerTr(int deviceType);
void updatePixmap(); void updatePixmap();

View File

@ -72,12 +72,37 @@ void BlockWidget::initUi()
m_curFontSize = m_modelLockDialog->getCurFontSize(); m_curFontSize = m_modelLockDialog->getCurFontSize();
m_ptToPx = m_modelLockDialog->getPtToPx(); m_ptToPx = m_modelLockDialog->getPtToPx();
connect(m_modelLockDialog, &LockDialogModel::fontSizeChanged, this, &BlockWidget::onFontSizeChanged);
m_tipLabel->setFontSize((14 + m_curFontSize)*m_ptToPx); m_tipLabel->setFontSize((14 + m_curFontSize)*m_ptToPx);
connect(m_cancelButton, &QPushButton::clicked, this, [&]() { emit cancelButtonclicked(); }); connect(m_cancelButton, &QPushButton::clicked, this, [&]() { emit cancelButtonclicked(); });
connect(m_confirmButton, &QPushButton::clicked, this, [&]() { emit confirmButtonclicked(); }); connect(m_confirmButton, &QPushButton::clicked, this, [&]() { emit confirmButtonclicked(); });
} }
void BlockWidget::onFontSizeChanged(double fontSize)
{
m_curFontSize = fontSize;
m_tipLabel->setFontSize((14 + m_curFontSize)*m_ptToPx);
sysFont.setPointSize((16 + m_curFontSize) *m_ptToPx);
m_confirmButton->setFont(sysFont);
m_cancelButton->setFont(sysFont);
}
void BlockWidget::updateFontFamily(QString fontFamily)
{
if (m_tipLabel) {
m_tipLabel->setFontFamily(fontFamily);
}
sysFont.setFamily(fontFamily);
if (m_cancelButton) {
m_cancelButton->setFont(sysFont);
}
if (m_confirmButton) {
m_confirmButton->setFont(sysFont);
}
}
void BlockWidget::setTips(const QString tips) void BlockWidget::setTips(const QString tips)
{ {
m_cancelButton->setFixedSize(96, 36); m_cancelButton->setFixedSize(96, 36);

View File

@ -35,9 +35,13 @@ public:
~BlockWidget(); ~BlockWidget();
void setTips(const QString tips); void setTips(const QString tips);
void setWarning(QStringList list, int type); void setWarning(QStringList list, int type);
void updateFontFamily(QString fontFamily);
private: private:
void initUi(); void initUi();
private Q_SLOTS:
void onFontSizeChanged(double fontSize);
Q_SIGNALS: Q_SIGNALS:
void cancelButtonclicked(); void cancelButtonclicked();
void confirmButtonclicked(); void confirmButtonclicked();

View File

@ -551,7 +551,11 @@ void FullBackgroundWidget::showEvent(QShowEvent *event)
{ {
if (QX11Info::isPlatformX11()) if (QX11Info::isPlatformX11())
tryGrabKeyboard(); tryGrabKeyboard();
QTimer::singleShot(10, this, [=]() { KWindowSystem::setType(this->winId(), NET::ScreenLock); }); QTimer::singleShot(10, this, [=](){
KWindowSystem::setType(this->winId(), NET::ScreenLock);
m_lockWidget->updateFont();
m_lockWidget->updateFontSize();
});
} }
void FullBackgroundWidget::keyReleaseEvent(QKeyEvent *e) void FullBackgroundWidget::keyReleaseEvent(QKeyEvent *e)

View File

@ -40,6 +40,12 @@ void KLabel::setFontSize(int fontSize)
this->setFont(sysFont); this->setFont(sysFont);
} }
void KLabel::setFontFamily(QString &family)
{
sysFont.setFamily(family);
this->setFont(sysFont);
}
void KLabel::setTipText(const QString &strText) void KLabel::setTipText(const QString &strText)
{ {
m_strText = strText; m_strText = strText;

View File

@ -33,6 +33,7 @@ public:
void setTipText(const QString &); void setTipText(const QString &);
void clear(); void clear();
QString text() const; QString text() const;
void setFontFamily(QString &family);
public Q_SLOTS: public Q_SLOTS:
void setText(const QString &); void setText(const QString &);

View File

@ -280,6 +280,8 @@ void LockWidget::initUI()
authDialog = new AuthDialog(m_modelLockDialog, m_curUserInfo, this); authDialog = new AuthDialog(m_modelLockDialog, m_curUserInfo, this);
authDialog->installEventFilter(this); authDialog->installEventFilter(this);
m_ptToPx = m_modelLockDialog->getPtToPx();
m_curFontSize = m_modelLockDialog->getCurFontSize();
initTimeWidget(); initTimeWidget();
initPowerWidget(); initPowerWidget();
initButtonWidget(); initButtonWidget();
@ -295,6 +297,8 @@ void LockWidget::initConnections()
connect(m_modelLockDialog, &LockDialogModel::currentSessionChanged, this, &LockWidget::onSessionChanged); connect(m_modelLockDialog, &LockDialogModel::currentSessionChanged, this, &LockWidget::onSessionChanged);
connect(m_modelLockDialog, &LockDialogModel::sessionActiveChanged, this, &LockWidget::onSessionActiveChanged); connect(m_modelLockDialog, &LockDialogModel::sessionActiveChanged, this, &LockWidget::onSessionActiveChanged);
connect(m_modelLockDialog, &LockDialogModel::tabletModeChanged, this, &LockWidget::onTabletModeChanged); connect(m_modelLockDialog, &LockDialogModel::tabletModeChanged, this, &LockWidget::onTabletModeChanged);
connect(m_modelLockDialog, &LockDialogModel::fontChanged, this, &LockWidget::onFontChanged);
connect(m_modelLockDialog, &LockDialogModel::fontSizeChanged, this, &LockWidget::onFontSizeChanged);
if (authDialog) { if (authDialog) {
connect(authDialog, SIGNAL(authSucceed(QString)), this, SIGNAL(authSucceed(QString))); connect(authDialog, SIGNAL(authSucceed(QString)), this, SIGNAL(authSucceed(QString)));
connect(authDialog, &AuthDialog::userChangedByManual, connect(authDialog, &AuthDialog::userChangedByManual,
@ -1110,6 +1114,16 @@ void LockWidget::onTabletModeChanged(bool tabletMode)
onShowVirtualKeyboard(tabletMode); onShowVirtualKeyboard(tabletMode);
} }
void LockWidget::onFontChanged(QString font)
{
m_curFont = font;
}
void LockWidget::onFontSizeChanged(double fontSize)
{
m_curFontSize = fontSize;
}
void LockWidget::SwitchToUser(QString strUserName) void LockWidget::SwitchToUser(QString strUserName)
{ {
if(m_modelLockDialog) { if(m_modelLockDialog) {
@ -1228,3 +1242,50 @@ void LockWidget::drawRootBackground()
{ {
drawBackground(true); drawBackground(true);
} }
void LockWidget::updateFont()
{
if (authDialog) {
authDialog->updateAuthFont(m_curFont);
}
if (m_timeWidget) {
m_timeWidget->updateTimeFont(m_curFont);
}
if (m_powerListWidget) {
QList<PowerItemWidget *>itemList = this->findChildren<PowerItemWidget *>();
for (int i = 0; i < itemList.count(); i++) {
itemList.at(i)->setFontFamily(m_curFont);
}
}
if (m_userListWidget) {
QList<UserItemWidget *>itemList = this->findChildren<UserItemWidget *>();
for (int i = 0; i < itemList.count(); i++) {
itemList.at(i)->setFontFamily(m_curFont);
}
}
if (m_blockWidget) {
m_blockWidget->updateFontFamily(m_curFont);
}
}
void LockWidget::updateFontSize()
{
if (authDialog) {
authDialog->updateAuthFontSize(m_curFontSize);
}
if (m_timeWidget) {
m_timeWidget->updateTimeFontSize(m_curFontSize);
}
if (m_powerListWidget) {
QList<PowerItemWidget *>itemList = this->findChildren<PowerItemWidget *>();
for (int i = 0; i < itemList.count(); i++) {
itemList.at(i)->setFontSize((16 + m_curFontSize) * m_ptToPx);
}
}
if (m_userListWidget) {
QList<UserItemWidget *>itemList = this->findChildren<UserItemWidget *>();
for (int i = 0; i < itemList.count(); i++) {
itemList.at(i)->setFontSize((14 + m_curFontSize) * m_ptToPx);
}
}
}

View File

@ -54,6 +54,8 @@ public:
void startAuth(); void startAuth();
void reloadRootBackground(); void reloadRootBackground();
void drawRootBackground(); void drawRootBackground();
void updateFont();
void updateFontSize();
protected: protected:
void paintEvent(QPaintEvent *event); void paintEvent(QPaintEvent *event);
@ -150,6 +152,10 @@ private Q_SLOTS:
void onTabletModeChanged(bool tabletMode); void onTabletModeChanged(bool tabletMode);
void onFontChanged(QString font);
void onFontSizeChanged(double fontSize);
Q_SIGNALS: Q_SIGNALS:
void authSucceed(QString strUserName); void authSucceed(QString strUserName);
@ -222,6 +228,9 @@ private:
QList<QPair<QRect,QRect>> m_screenRectList; QList<QPair<QRect,QRect>> m_screenRectList;
bool m_isTabletMode = false; bool m_isTabletMode = false;
QString m_curFont;
double m_curFontSize;
double m_ptToPx = 1.0;
}; };
#endif // LOCKWIDGET_H #endif // LOCKWIDGET_H

View File

@ -1032,6 +1032,20 @@ LoginAuthInterface* LoginOptionsWidget::getCustomLoginAuth()
return dynamic_cast<LoginAuthInterface *>(PluginsLoader::instance().findModulesByType(LoginPluginInterface::MODULETYPE_AUTH).values().first()); return dynamic_cast<LoginAuthInterface *>(PluginsLoader::instance().findModulesByType(LoginPluginInterface::MODULETYPE_AUTH).values().first());
} }
void LoginOptionsWidget::updateLoginOptionFont(QString fontFamily)
{
if (m_labelOptTitle) {
m_labelOptTitle->setFontFamily(fontFamily);
}
}
void LoginOptionsWidget::updateLoginOptionFontSize(double fontSize)
{
if (m_labelOptTitle) {
m_labelOptTitle->setFontSize(fontSize);
}
}
QString LoginOptionsWidget::getDeviceType_tr(int deviceType) QString LoginOptionsWidget::getDeviceType_tr(int deviceType)
{ {
switch(deviceType) switch(deviceType)

View File

@ -92,6 +92,10 @@ public:
LoginAuthInterface* getCustomLoginAuth(); LoginAuthInterface* getCustomLoginAuth();
void updateLoginOptionFont(QString fontFamily);
void updateLoginOptionFontSize(double fontSize);
public slots: public slots:
void readDevicesInfo(); void readDevicesInfo();
void onIdentifyComplete(QDBusPendingCallWatcher *watcher); void onIdentifyComplete(QDBusPendingCallWatcher *watcher);

View File

@ -26,7 +26,7 @@ PowerItemWidget::PowerItemWidget(QWidget *parent)
{ {
itemFace = new StatusButton(this, POWERBUTTON); itemFace = new StatusButton(this, POWERBUTTON);
itemFace->setFixedSize(130, 130); itemFace->setFixedSize(130, 130);
textLabel = new QLabel(this); textLabel = new KLabel(this);
textLabel->setAlignment(Qt::AlignCenter); textLabel->setAlignment(Qt::AlignCenter);
textLabel->setStyleSheet("color: white"); textLabel->setStyleSheet("color: white");
QVBoxLayout *itemlayout = new QVBoxLayout(this); QVBoxLayout *itemlayout = new QVBoxLayout(this);
@ -71,3 +71,20 @@ void PowerItemWidget::setSelected(int status)
{ {
itemFace->setClickedStatus(status); itemFace->setClickedStatus(status);
} }
void PowerItemWidget::setFontFamily(QString fontFamily)
{
textLabel->setFontFamily(fontFamily);
}
void PowerItemWidget::setFontSize(double fontSize)
{
textLabel->setFontSize(fontSize);
}

View File

@ -19,7 +19,7 @@
#define POWERITEMWIDGET_H #define POWERITEMWIDGET_H
#include <QWidget> #include <QWidget>
#include <QLabel> #include "klabel.h"
class StatusButton; class StatusButton;
@ -40,6 +40,9 @@ public:
*/ */
void setSelected(int status); void setSelected(int status);
void setFontFamily(QString fontFamily);
void setFontSize(double fontSize);
protected: protected:
bool eventFilter(QObject *obj, QEvent *event); bool eventFilter(QObject *obj, QEvent *event);
@ -52,7 +55,7 @@ Q_SIGNALS:
private: private:
StatusButton *itemFace = nullptr; StatusButton *itemFace = nullptr;
QLabel *textLabel = nullptr; KLabel *textLabel = nullptr;
}; };
#endif // POWERITEMWIDGET_H #endif // POWERITEMWIDGET_H

View File

@ -57,6 +57,9 @@ void PowerListWidget::initUI()
setStyleSheet(powerListStyle); setStyleSheet(powerListStyle);
setFixedSize(QSize(BTN_ITEM_SIZE_WIDTH * sizeof(powerBtnList) / sizeof(powerBtnList[0]) + 1, BTN_ITEM_SIZE_HEIGHT)); setFixedSize(QSize(BTN_ITEM_SIZE_WIDTH * sizeof(powerBtnList) / sizeof(powerBtnList[0]) + 1, BTN_ITEM_SIZE_HEIGHT));
// powerBtnList[0].func = &PowerListWidget::setSystemSuspend1(); // powerBtnList[0].func = &PowerListWidget::setSystemSuspend1();
m_curFontSize = m_modelLockDialog->getCurFontSize();
m_ptToPx = m_modelLockDialog->getPtToPx();
onUpdateListInfo(); onUpdateListInfo();
} }
@ -101,6 +104,7 @@ void PowerListWidget::onUpdateListInfo()
btnWdg->setToolTip(powerBtnList[i].m_strToolTip); btnWdg->setToolTip(powerBtnList[i].m_strToolTip);
btnWdg->setIcon( btnWdg->setIcon(
QIcon(powerBtnList[i].m_strIcon).pixmap(powerBtnList[i].m_icon_width, powerBtnList[i].m_icon_width)); QIcon(powerBtnList[i].m_strIcon).pixmap(powerBtnList[i].m_icon_width, powerBtnList[i].m_icon_width));
btnWdg->setFontSize((16 + m_curFontSize) * m_ptToPx);
} }
} }
@ -170,8 +174,7 @@ void PowerListWidget::refreshTranslate()
"can quickly wake up and revert to where you left off"); "can quickly wake up and revert to where you left off");
} else if (powerBtnList[i].setFuncName == "Reboot") { } else if (powerBtnList[i].setFuncName == "Reboot") {
powerBtnList[i].m_strName = tr("Restart"); powerBtnList[i].m_strName = tr("Restart");
powerBtnList[i].m_strToolTip = tr("The computer stays on, but consumes less power. The app stays open and " powerBtnList[i].m_strToolTip = tr("Close all apps, and then restart your computer");
"can quickly wake up and revert to where you left off");
} else if (powerBtnList[i].setFuncName == "PowerOff") { } else if (powerBtnList[i].setFuncName == "PowerOff") {
powerBtnList[i].m_strName = tr("Shut Down"); powerBtnList[i].m_strName = tr("Shut Down");
powerBtnList[i].m_strToolTip = tr("Close all apps, and then shut down your computer"); powerBtnList[i].m_strToolTip = tr("Close all apps, and then shut down your computer");

View File

@ -152,6 +152,9 @@ private:
bool m_canReboot; bool m_canReboot;
bool m_canShutDown; bool m_canShutDown;
double m_curFontSize;
double m_ptToPx = 1.0;
void initUI(); void initUI();
void initBtnShowFlag(); void initBtnShowFlag();
void initConnections(); void initConnections();

View File

@ -80,6 +80,26 @@ void TimeWidget::timerStop()
m_timer->stop(); m_timer->stop();
} }
void TimeWidget::updateTimeFont(QString fontFamily)
{
if (m_t_label) {
m_t_label->setFontFamily(fontFamily);
}
if (m_d_label) {
m_d_label->setFontFamily(fontFamily);
}
}
void TimeWidget::updateTimeFontSize(double fontSize)
{
if (m_t_label) {
m_t_label->setFontSize((TIME_FONT_SIZE + fontSize)*m_ptToPx);
}
if (m_d_label) {
m_d_label->setFontSize((TIME_DATE_SIZE + fontSize)*m_ptToPx);
}
}
QString TimeWidget::getLongFormatDate(int type) QString TimeWidget::getLongFormatDate(int type)
{ {
kdk_logn_dateinfo *dateInfo = kdk_system_login_lock_dateinfo(getenv("USER")); kdk_logn_dateinfo *dateInfo = kdk_system_login_lock_dateinfo(getenv("USER"));

View File

@ -49,6 +49,8 @@ public Q_SLOTS:
void update_datatime(); void update_datatime();
void timerStart(); void timerStart();
void timerStop(); void timerStop();
void updateTimeFont(QString fontFamily);
void updateTimeFontSize(double fontSize);
private: private:

View File

@ -25,6 +25,7 @@
#include <QDebug> #include <QDebug>
#include <QEvent> #include <QEvent>
#include "commonfunc.h" #include "commonfunc.h"
#include "klabel.h"
UserItemWidget::UserItemWidget(QWidget *parent) : UserItemWidget::UserItemWidget(QWidget *parent) :
QWidget(parent) QWidget(parent)
@ -59,7 +60,7 @@ void UserItemWidget::init()
layout->setContentsMargins(8, 4, 8, 4); layout->setContentsMargins(8, 4, 8, 4);
layout->setSpacing(4); layout->setSpacing(4);
m_labelHeadImg = new QLabel(this); m_labelHeadImg = new QLabel(this);
m_labelNickName = new QLabel(this); m_labelNickName = new KLabel(this);
m_labelNickName->setFixedSize(364, 32); m_labelNickName->setFixedSize(364, 32);
layout->addWidget(m_labelHeadImg); layout->addWidget(m_labelHeadImg);
layout->addWidget(m_labelNickName); layout->addWidget(m_labelNickName);
@ -110,3 +111,22 @@ void UserItemWidget::setUserStatus(bool status)
m_labelLoggedIn->setPixmap(status); m_labelLoggedIn->setPixmap(status);
} }
} }
void UserItemWidget::setFontFamily(QString fontFamily)
{
m_labelNickName->setFontFamily(fontFamily);
}
void UserItemWidget::setFontSize(double fontSize)
{
m_labelNickName->setFontSize(fontSize);
}

View File

@ -24,6 +24,7 @@
class userLabel; class userLabel;
class QLabel; class QLabel;
class QPixmap; class QPixmap;
class KLabel;
class UserItemWidget : public QWidget class UserItemWidget : public QWidget
{ {
@ -59,6 +60,11 @@ public:
void setUserNickName(QString strNickName); void setUserNickName(QString strNickName);
inline QString userNickName() { return m_strNickName; } inline QString userNickName() { return m_strNickName; }
void setFontFamily(QString fontFamily);
void setFontSize(double fontSize);
protected: protected:
bool eventFilter(QObject *obj, QEvent *event); bool eventFilter(QObject *obj, QEvent *event);
virtual void paintEvent(QPaintEvent * event); virtual void paintEvent(QPaintEvent * event);
@ -79,7 +85,7 @@ Q_SIGNALS:
private: private:
QLabel *m_labelHeadImg = nullptr; QLabel *m_labelHeadImg = nullptr;
QLabel* m_labelNickName = nullptr; KLabel* m_labelNickName = nullptr;
QLabel* m_labelLoggedIn = nullptr; QLabel* m_labelLoggedIn = nullptr;
QString m_strUserName; QString m_strUserName;
QString m_strNickName; QString m_strNickName;

View File

@ -38,6 +38,8 @@ void UserListWidget::initUI()
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
verticalScrollBar()->setProperty("drawScrollBarGroove", false); verticalScrollBar()->setProperty("drawScrollBarGroove", false);
m_curFontSize = m_modelLockDialog->getCurFontSize();
m_ptToPx = m_modelLockDialog->getPtToPx();
onUpdateListInfo(); onUpdateListInfo();
} }
@ -71,6 +73,7 @@ void UserListWidget::onUpdateListInfo()
setCurrentItem(userItem, QItemSelectionModel::SelectionFlag::SelectCurrent); setCurrentItem(userItem, QItemSelectionModel::SelectionFlag::SelectCurrent);
} }
itemWidget->setUserName(user->name()); itemWidget->setUserName(user->name());
itemWidget->setFontSize((14 + m_curFontSize) * m_ptToPx);
setItemWidget(userItem, itemWidget); setItemWidget(userItem, itemWidget);
} }
updateWidgetSize(); updateWidgetSize();

View File

@ -51,6 +51,8 @@ private:
private: private:
LockDialogModel *m_modelLockDialog = nullptr; LockDialogModel *m_modelLockDialog = nullptr;
double m_curFontSize;
double m_ptToPx = 1.0;
}; };
#endif // USERLISTWIDGET_H #endif // USERLISTWIDGET_H