!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>
<location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation>FingerVein</translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation>Iris</translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/>
@ -172,13 +172,40 @@
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<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>
<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="144"/>
<source>Charging...</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="116"/>
<location filename="../src/widgets/batterywidget.cpp" line="146"/>
<source>fully charged</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="120"/>
<location filename="../src/widgets/batterywidget.cpp" line="150"/>
<source>PowerMode</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="123"/>
<location filename="../src/widgets/batterywidget.cpp" line="153"/>
<source>BatteryMode</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -381,34 +408,34 @@
<location filename="../src/widgets/blockwidget.cpp" line="99"/>
<location filename="../src/widgets/blockwidget.cpp" line="152"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -1679,17 +1706,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -1977,7 +2004,7 @@
<message>
<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>
<translation type="unfinished"></translation>
<translation> %1</translation>
</message>
</context>
<context>
@ -2001,37 +2028,37 @@
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Wechat</source>
@ -2055,12 +2082,12 @@
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2233,51 +2260,52 @@
<context>
<name>PowerListWidget</name>
<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"/>
<source>Hibernate</source>
<translation type="unfinished"></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>
<translation></translation>
</message>
<message>
<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>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/>
@ -2337,7 +2365,7 @@
</message>
<message>
<source>Shut Down</source>
<translation type="vanished"></translation>
<translation></translation>
</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>

View File

@ -143,42 +143,69 @@
<message>
<location filename="../src/widgets/authdialog.cpp" line="1772"/>
<source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2041"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<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>
<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="144"/>
<source>Charging...</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="116"/>
<location filename="../src/widgets/batterywidget.cpp" line="146"/>
<source>fully charged</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="120"/>
<location filename="../src/widgets/batterywidget.cpp" line="150"/>
<source>PowerMode</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/batterywidget.cpp" line="123"/>
<location filename="../src/widgets/batterywidget.cpp" line="153"/>
<source>BatteryMode</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
</context>
<context>
@ -381,34 +408,34 @@
<location filename="../src/widgets/blockwidget.cpp" line="99"/>
<location filename="../src/widgets/blockwidget.cpp" line="152"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"> !</translation>
<translation> !</translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"> !</translation>
<translation> !</translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"> !</translation>
<translation> !</translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"> !</translation>
<translation> !</translation>
</message>
</context>
<context>
@ -1674,17 +1701,17 @@
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="49"/>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="86"/>
<source>Suspended state</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
</context>
<context>
@ -1980,7 +2007,7 @@
<message>
<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>
<translation type="unfinished"></translation>
<translation> %1 ?</translation>
</message>
</context>
<context>
@ -2004,37 +2031,37 @@
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source>
<translation type="unfinished"> </translation>
<translation> </translation>
</message>
<message>
<source>Wechat</source>
@ -2058,12 +2085,12 @@
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source>
<translation type="unfinished"> </translation>
<translation> </translation>
</message>
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source>
<translation type="unfinished"> </translation>
<translation> </translation>
</message>
</context>
<context>
@ -2236,47 +2263,52 @@
<context>
<name>PowerListWidget</name>
<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"/>
<source>Hibernate</source>
<translation type="unfinished"></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>
<translation></translation>
</message>
<message>
<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>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Power Off</source>
@ -2285,7 +2317,7 @@
<message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"> </translation>
<translation> </translation>
</message>
</context>
<context>
@ -2340,7 +2372,7 @@
</message>
<message>
<source>Shut Down</source>
<translation type="vanished"></translation>
<translation></translation>
</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>

View File

@ -172,14 +172,41 @@
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<source>QRCode</source>
<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>
<source>Use the bound wechat scanning code or enter the password to log in</source>
<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="86"/>
<source>Suspended state</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2209,56 +2236,57 @@
<context>
<name>PowerListWidget</name>
<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"/>
<source>Hibernate</source>
<translation></translation>
</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"/>
<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>
<location filename="../src/widgets/powerlistwidget.cpp" line="168"/>
<location filename="../src/widgets/powerlistwidget.h" line="94"/>
<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="169"/>
<location filename="../src/widgets/powerlistwidget.cpp" line="173"/>
<location filename="../src/widgets/powerlistwidget.h" line="95"/>
<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 type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="172"/>
<location filename="../src/widgets/powerlistwidget.h" line="107"/>
<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="176"/>
<location filename="../src/widgets/powerlistwidget.h" line="119"/>
<source>Shut Down</source>
<translation type="unfinished"></translation>
<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 type="vanished"></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.cpp" line="177"/>
<location filename="../src/widgets/powerlistwidget.h" line="120"/>
<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>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2313,7 +2341,7 @@
</message>
<message>
<source>Shut Down</source>
<translation type="vanished"></translation>
<translation></translation>
</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>
@ -2351,37 +2379,37 @@
<message>
<location filename="../src/common/biodefines.cpp" line="28"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="30"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="32"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="34"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="36"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="38"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/common/biodefines.cpp" line="40"/>
<source>QRCode</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2729,5 +2757,15 @@
<source>window id</source>
<translation type="unfinished"></translation>
</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>
</TS>

View File

@ -143,42 +143,69 @@
<message>
<location filename="../src/widgets/authdialog.cpp" line="1772"/>
<source>Face recognition waiting time out, please click refresh or enter the password to unlock.</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2033"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2035"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2037"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2039"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2041"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2043"/>
<location filename="../src/widgets/authdialog.cpp" line="2066"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/authdialog.cpp" line="2045"/>
<location filename="../src/widgets/authdialog.cpp" line="2068"/>
<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>
<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="152"/>
<source>Cancel</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="61"/>
<location filename="../src/widgets/blockwidget.cpp" line="100"/>
<location filename="../src/widgets/blockwidget.cpp" line="153"/>
<source>Confrim</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="108"/>
<source>The following program is running to prevent the system from reboot!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="111"/>
<source>The following program is running to prevent the system from shutting down!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="114"/>
<source>The following program is running to prevent the system from suspend!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/blockwidget.cpp" line="117"/>
<source>The following program is running to prevent the system from hibernate!</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -430,7 +457,7 @@
<message>
<location filename="../src/VirtualKeyboard/src/charswidget.cpp" line="129"/>
<source>ABC</source>
<translation></translation>
<translation>ABC</translation>
</message>
<message>
<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="86"/>
<source>Suspended state</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="60"/>
<source>Close</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/VirtualKeyboard/src/kbtitle.cpp" line="89"/>
<source>Welt status</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -1973,7 +2000,7 @@
<message>
<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>
<translation type="unfinished"></translation>
<translation>, %1 </translation>
</message>
</context>
<context>
@ -1997,37 +2024,37 @@
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1040"/>
<source>FingerPrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1042"/>
<source>FingerVein</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1044"/>
<source>Iris</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1046"/>
<source>Face</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1048"/>
<source>VoicePrint</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1050"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/loginoptionswidget.cpp" line="1052"/>
<source>QRCode</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<source>Wechat</source>
@ -2051,12 +2078,12 @@
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="52"/>
<source>LAN</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/mynetworkwidget.cpp" line="54"/>
<source>WLAN</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2229,56 +2256,57 @@
<context>
<name>PowerListWidget</name>
<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"/>
<source>Hibernate</source>
<translation type="unfinished"></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>
<translation></translation>
</message>
<message>
<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>
<translation type="unfinished"></translation>
<translation></translation>
</message>
<message>
<location filename="../src/widgets/powerlistwidget.h" line="108"/>
<source>Close all apps, turn off your computer, and then turn your computer back on</source>
<translation type="unfinished"></translation>
<translation></translation>
</message>
</context>
<context>
@ -2333,7 +2361,7 @@
</message>
<message>
<source>Shut Down</source>
<translation type="vanished"></translation>
<translation></translation>
</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>
@ -2396,7 +2424,7 @@
<message>
<location filename="../src/common/biodefines.cpp" line="38"/>
<source>Ukey</source>
<translation type="unfinished"></translation>
<translation type="unfinished"></translation>
</message>
<message>
<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 GLIB_KEY_SYSTEM_FONT_SIZE "system-font-size"
#define KEY_THEME_COLOR "themeColor"
#define KEY_SYSTEM_FONT "systemFont"
#define GSETTINGS_SCHEMA_SESSION "org.ukui.session"
#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();
} else if (strKey == KEY_THEME_COLOR) {
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);
}

View File

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

View File

@ -390,6 +390,10 @@ void LockDialogModel::onThemeStyleConfChanged(const QString &key, QVariant value
{
if (key == KEY_SYSTEM_FONT_SIZE) {
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 fontSizeChanged(double fontSize);
void fontChanged(QString font);
private:
QString getXScreensaverPath(const QString &theme);
private:

View File

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

View File

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

View File

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

View File

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

View File

@ -217,6 +217,50 @@ void AuthDialog::updateAuthSize()
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()
{
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_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 {
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) {
QImage imgFailed;
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_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 {
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) {
QImage imgFailed;
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_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;
setQRCode(nullImage);
}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 {
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)
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]));
}else {
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]));
}
}
@ -1905,9 +1949,9 @@ void AuthDialog::onBiometricDbusChanged(bool bActive)
//已经错误超过3次
if(m_failMap.contains(m_curUserInfo->uid()) && m_failMap[m_curUserInfo->uid()][m_deviceInfo->id] >= maxFailedTimes) {
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 {
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) {
QImage imgFailed;
setFaceImg(imgFailed, 1);
@ -2047,3 +2091,27 @@ QString AuthDialog::getDeviceType_tr(int deviceType)
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 updateAuthFont(QString fontFamily);
void updateAuthFontSize(double fontSize);
private Q_SLOTS:
void onPamShowMessage(QString strMsg, int nType);
void onPamShowPrompt(QString strPrompt, int nType);
@ -160,6 +164,7 @@ private:
void restartBioAuth();
void waitBiometricServiceStatus();
QString getDeviceType_tr(int deviceType);
QString getDeviceType_lowerTr(int deviceType);
void updatePixmap();

View File

@ -72,12 +72,37 @@ void BlockWidget::initUi()
m_curFontSize = m_modelLockDialog->getCurFontSize();
m_ptToPx = m_modelLockDialog->getPtToPx();
connect(m_modelLockDialog, &LockDialogModel::fontSizeChanged, this, &BlockWidget::onFontSizeChanged);
m_tipLabel->setFontSize((14 + m_curFontSize)*m_ptToPx);
connect(m_cancelButton, &QPushButton::clicked, this, [&]() { emit cancelButtonclicked(); });
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)
{
m_cancelButton->setFixedSize(96, 36);

View File

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

View File

@ -551,7 +551,11 @@ void FullBackgroundWidget::showEvent(QShowEvent *event)
{
if (QX11Info::isPlatformX11())
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)

View File

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

View File

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

View File

@ -280,6 +280,8 @@ void LockWidget::initUI()
authDialog = new AuthDialog(m_modelLockDialog, m_curUserInfo, this);
authDialog->installEventFilter(this);
m_ptToPx = m_modelLockDialog->getPtToPx();
m_curFontSize = m_modelLockDialog->getCurFontSize();
initTimeWidget();
initPowerWidget();
initButtonWidget();
@ -295,6 +297,8 @@ void LockWidget::initConnections()
connect(m_modelLockDialog, &LockDialogModel::currentSessionChanged, this, &LockWidget::onSessionChanged);
connect(m_modelLockDialog, &LockDialogModel::sessionActiveChanged, this, &LockWidget::onSessionActiveChanged);
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) {
connect(authDialog, SIGNAL(authSucceed(QString)), this, SIGNAL(authSucceed(QString)));
connect(authDialog, &AuthDialog::userChangedByManual,
@ -1110,6 +1114,16 @@ void LockWidget::onTabletModeChanged(bool tabletMode)
onShowVirtualKeyboard(tabletMode);
}
void LockWidget::onFontChanged(QString font)
{
m_curFont = font;
}
void LockWidget::onFontSizeChanged(double fontSize)
{
m_curFontSize = fontSize;
}
void LockWidget::SwitchToUser(QString strUserName)
{
if(m_modelLockDialog) {
@ -1228,3 +1242,50 @@ void LockWidget::drawRootBackground()
{
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 reloadRootBackground();
void drawRootBackground();
void updateFont();
void updateFontSize();
protected:
void paintEvent(QPaintEvent *event);
@ -150,6 +152,10 @@ private Q_SLOTS:
void onTabletModeChanged(bool tabletMode);
void onFontChanged(QString font);
void onFontSizeChanged(double fontSize);
Q_SIGNALS:
void authSucceed(QString strUserName);
@ -222,6 +228,9 @@ private:
QList<QPair<QRect,QRect>> m_screenRectList;
bool m_isTabletMode = false;
QString m_curFont;
double m_curFontSize;
double m_ptToPx = 1.0;
};
#endif // LOCKWIDGET_H

View File

@ -1032,6 +1032,20 @@ LoginAuthInterface* LoginOptionsWidget::getCustomLoginAuth()
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)
{
switch(deviceType)

View File

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

View File

@ -26,7 +26,7 @@ PowerItemWidget::PowerItemWidget(QWidget *parent)
{
itemFace = new StatusButton(this, POWERBUTTON);
itemFace->setFixedSize(130, 130);
textLabel = new QLabel(this);
textLabel = new KLabel(this);
textLabel->setAlignment(Qt::AlignCenter);
textLabel->setStyleSheet("color: white");
QVBoxLayout *itemlayout = new QVBoxLayout(this);
@ -71,3 +71,20 @@ void PowerItemWidget::setSelected(int 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
#include <QWidget>
#include <QLabel>
#include "klabel.h"
class StatusButton;
@ -40,6 +40,9 @@ public:
*/
void setSelected(int status);
void setFontFamily(QString fontFamily);
void setFontSize(double fontSize);
protected:
bool eventFilter(QObject *obj, QEvent *event);
@ -52,7 +55,7 @@ Q_SIGNALS:
private:
StatusButton *itemFace = nullptr;
QLabel *textLabel = nullptr;
KLabel *textLabel = nullptr;
};
#endif // POWERITEMWIDGET_H

View File

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

View File

@ -80,6 +80,26 @@ void TimeWidget::timerStop()
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)
{
kdk_logn_dateinfo *dateInfo = kdk_system_login_lock_dateinfo(getenv("USER"));

View File

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

View File

@ -25,6 +25,7 @@
#include <QDebug>
#include <QEvent>
#include "commonfunc.h"
#include "klabel.h"
UserItemWidget::UserItemWidget(QWidget *parent) :
QWidget(parent)
@ -59,7 +60,7 @@ void UserItemWidget::init()
layout->setContentsMargins(8, 4, 8, 4);
layout->setSpacing(4);
m_labelHeadImg = new QLabel(this);
m_labelNickName = new QLabel(this);
m_labelNickName = new KLabel(this);
m_labelNickName->setFixedSize(364, 32);
layout->addWidget(m_labelHeadImg);
layout->addWidget(m_labelNickName);
@ -110,3 +111,22 @@ void UserItemWidget::setUserStatus(bool 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 QLabel;
class QPixmap;
class KLabel;
class UserItemWidget : public QWidget
{
@ -59,6 +60,11 @@ public:
void setUserNickName(QString strNickName);
inline QString userNickName() { return m_strNickName; }
void setFontFamily(QString fontFamily);
void setFontSize(double fontSize);
protected:
bool eventFilter(QObject *obj, QEvent *event);
virtual void paintEvent(QPaintEvent * event);
@ -79,7 +85,7 @@ Q_SIGNALS:
private:
QLabel *m_labelHeadImg = nullptr;
QLabel* m_labelNickName = nullptr;
KLabel* m_labelNickName = nullptr;
QLabel* m_labelLoggedIn = nullptr;
QString m_strUserName;
QString m_strNickName;

View File

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

View File

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