diff --git a/data/desktop/kwin.desktop b/data/desktop/kwin.desktop new file mode 100755 index 0000000..25b9da0 --- /dev/null +++ b/data/desktop/kwin.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Type=Application +Name=KWin +Exec=kwin_x11 --replace +NoDisplay=true +# name of loadable control center module +X-UKUI-WMSettingsModule=kwin +# name we put on the WM spec check window +X-UKUI-WMName=KWin +# back compat only +X-UKUI-Autostart-Phase=WindowManager +X-UKUI-Provides=windowmanager +X-UKUI-Autostart-Notify=true +X-Ubuntu-Gettext-Domain=kwin diff --git a/data/desktop/ukui-kglobal.desktop b/data/desktop/ukui-kglobal.desktop new file mode 100755 index 0000000..2596130 --- /dev/null +++ b/data/desktop/ukui-kglobal.desktop @@ -0,0 +1,20 @@ +[Desktop Entry] +Type=Application +Name=Screensaver +Name[tr]=Ekran Koruyucu +Name[zh_CN]=屏幕保护程序 +Name[zh_HK]=螢幕保護程式 +Name[zh_TW]=螢幕保護程式 +Comment[tr]=Ekran koruyucuyu çalıştır ve programı kilitler +Comment[zh_CN]=运行屏幕保护及锁定程序 +Comment[zh_TW]=啟動螢幕保護程式以及鎖定程式 +Exec=kglobalaccel5 +NoDisplay=true +X-UKUI-Autostart-Phase=Application +X-UKUI-Autostart-Notify=true +X-UKUI-Bugzilla-Bugzilla=UKUI +X-UKUI-Bugzilla-Product=ukui-screensaver +X-UKUI-Bugzilla-Component=general +X-UKUI-Bugzilla-Version=1.0.0 +OnlyShowIn=UKUI +X-UKUI-AutoRestart=true diff --git a/data/desktop/ukui-screensaver.desktop b/data/desktop/ukui-screensaver.desktop new file mode 100755 index 0000000..eb55f1a --- /dev/null +++ b/data/desktop/ukui-screensaver.desktop @@ -0,0 +1,21 @@ +[Desktop Entry] +Type=Application +Name=Screensaver +Name[tr]=Ekran Koruyucu +Name[zh_CN]=屏幕保护程序 +Name[zh_HK]=螢幕保護程式 +Name[zh_TW]=螢幕保護程式 +Comment[tr]=Ekran koruyucuyu çalıştır ve programı kilitler +Comment[zh_CN]=运行屏幕保护及锁定程序 +Comment[zh_TW]=啟動螢幕保護程式以及鎖定程式 +Exec=ukui-screensaver-backend --lock-startup +#Exec=mate-terminal +NoDisplay=true +X-UKUI-Autostart-Phase=Application +X-UKUI-Autostart-Notify=true +X-UKUI-Bugzilla-Bugzilla=UKUI +X-UKUI-Bugzilla-Product=ukui-screensaver +X-UKUI-Bugzilla-Component=general +X-UKUI-Bugzilla-Version=1.0.0 +OnlyShowIn=UKUI +X-UKUI-AutoRestart=true diff --git a/data/desktop/ukui-settings-daemon.desktop b/data/desktop/ukui-settings-daemon.desktop new file mode 100755 index 0000000..81e25c9 --- /dev/null +++ b/data/desktop/ukui-settings-daemon.desktop @@ -0,0 +1,74 @@ +[Desktop Entry] +Type=Application +Name=UKUI Settings Daemon +Name[am]=የ ሜት ማሰናጃ ረዳት +Name[ar]=محثّ إعدادات متّة +Name[as]=UKUI Settings ডেমন +Name[ast]=Degorriu d'axustes de UKUI +Name[be]=Дэман настáўленняў UKUI +Name[bg]=Сървър за настройките на UKUI +Name[bn]=UKUI Settings ডেমন +Name[bn_IN]=UKUI Settings ডেমন +Name[ca]=Dimoni dels ajusts de UKUI +Name[ca@valencia]=Dimoni de paràmetres del UKUI +Name[cmn]=UKUI 設定值守護程式 +Name[crh]=UKUI Ayarları Cını +Name[cs]=Démon nastavení UKUI +Name[da]=UKUI-indstillingsdæmon +Name[de]=UKUI-Einstellungsdienst +Name[el]=Δαίμονας ρυθμίσεων UKUI +Name[en_AU]=UKUI Settings Daemon +Name[en_GB]=UKUI Settings Daemon +Name[es]=Administrador de preferencias de UKUI +Name[et]=UKUI sätetedeemon +Name[eu]=UKUIren ezarpenen daemon-a +Name[fi]=Maten asetuspalvelin +Name[fr]=Service des paramètres UKUI +Name[ga]=Deamhan Socruithe UKUI +Name[gl]=Servizo de configuracións do UKUI +Name[gu]=UKUI સુયોજનો ડેઇમન +Name[he]=מנוע ההגדרות של UKUI +Name[hi]=गनोम सेटिंग डेमॉन +Name[hu]=UKUI beállításdémon +Name[hy]=UKUI Կարգաբերման պարամետրերի օժանդակ ծրագիր +Name[id]=Daemon Penataan UKUI +Name[it]=Demone di impostazioni per UKUI +Name[ja]=UKUI 設定デーモン +Name[kn]=UKUI ಸಂಯೋಜನೆಗಳ ಡೀಮನ್(Daemon) +Name[ko]=마테 설정 데몬 +Name[lt]=UKUI nustatymų tarnyba +Name[lv]=UKUI iestatījumu dēmons +Name[mk]=Демонот за поставувања на UKUI +Name[ml]=ഗ്നോമിലെ സജ്ജീകരണങ്ങളുടെ നിരന്തരപ്രവൃത്തി +Name[mr]=UKUI संयोजना डीमन +Name[ms]=Daemon Tetapan UKUI +Name[nb]=UKUI oppsettstjenestenisse +Name[nl]=Mate-instellingenvoorziening +Name[nn]=UKUI innstillingsnisse +Name[or]=UKUI ବିନ୍ୟାସ ଡେମନ +Name[pa]=ਗਨੋਮ ਸੈਟਿੰਗ ਡੈਮਨ +Name[pl]=Usługa ustawień środowiska UKUI +Name[pt]=Servidor de Definições UKUI +Name[pt_BR]=Daemon de configurações do UKUI +Name[ro]=Serviciul de configurări UKUI +Name[ru]=Демон параметров UKUI +Name[sk]=Démon nastavení UKUI +Name[sl]=Ozadnji program nastavitev UKUI +Name[sr]=Мејтов услужник подешавања +Name[sr@latin]=Uslužni program za podešavanje Gnoma +Name[sv]=UKUI-inställningsdemon +Name[ta]=UKUI அமைவுகள் கிங்கரன் +Name[te]=UKUI అమర్పుల డెమోన్ +Name[th]=ดีมอนค่าตั้ง UKUI +Name[tr]=UKUI Ayarlar Servisi +Name[uk]=Служба параметрів UKUI +Name[ur]=میٹ ترتیبات ڈیمن +Name[vi]=Trình nền Thiết lập UKUI +Name[zh_CN]=UKUI 设置守护程序 +Name[zh_HK]=UKUI 設定值伺服程式 +Name[zh_TW]=UKUI 設定值守護程式 +Exec=/usr/bin/ukui-settings-daemon +OnlyShowIn=UKUI; +X-UKUI-Autostart-Phase=Initialization +X-UKUI-Autostart-Notify=true +X-UKUI-AutoRestart=true diff --git a/data/ukui-greeter/ukui-greeter.desktop b/data/ukui-greeter/ukui-greeter.desktop index b1d202f..32ae3f9 100644 --- a/data/ukui-greeter/ukui-greeter.desktop +++ b/data/ukui-greeter/ukui-greeter.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=UKUI Greeter Comment=UKUI Greeter -Exec=ukui-greeter +Exec=ukui-session simpleDesk Type=Application X-Ubuntu-Gettext-Domain=ukui-greeter diff --git a/debian/ukui-screensaver.install b/debian/ukui-screensaver.install index 7cebfef..9a784c9 100644 --- a/debian/ukui-screensaver.install +++ b/debian/ukui-screensaver.install @@ -1,3 +1,8 @@ data/ukui-greeter/95-ukui-greeter.conf /usr/share/lightdm/lightdm.conf.d/ data/ukui-greeter/lightdm-session-setup.sh /usr/lib/lightdm/ -data/ukui-greeter/ukui-greeter.desktop /usr/share/xgreeters/ \ No newline at end of file +data/ukui-greeter/ukui-greeter.desktop /usr/share/xgreeters/ +data/desktop/kwin.desktop /usr/share/ukui/ukui-session-manager/simpledesk/ +data/desktop/ukui-screensaver.desktop /usr/share/ukui/ukui-session-manager/simpledesk/ +data/desktop/ukui-kglobal.desktop /usr/share/ukui/ukui-session-manager/simpledesk/ +data/desktop/ukui-settings-daemon.desktop /usr/share/ukui/ukui-session-manager/simpledesk/ + diff --git a/debian/ukui-screensaver.preinst b/debian/ukui-screensaver.preinst index ebf7535..48606a2 100644 --- a/debian/ukui-screensaver.preinst +++ b/debian/ukui-screensaver.preinst @@ -10,7 +10,7 @@ path_sh="/usr/lib/lightdm/lightdm-session-setup.sh " dpkg-divert --package ukui-screensaver --rename --divert "$path_sh"".old" --add $path_sh path_desktop="/usr/share/xgreeters/ukui-greeter.desktop" dpkg-divert --package ukui-screensaver --rename --divert "$path_desktop"".old" --add $path_desktop - +mkdir -p /usr/share/ukui/ukui-session-manager/simpledesk #remove_greeter(){ # dpkg -P ukui-greeter #} diff --git a/src/dbusifs/kglobalaccelhelper.cpp b/src/dbusifs/kglobalaccelhelper.cpp index 805f92d..42906e4 100644 --- a/src/dbusifs/kglobalaccelhelper.cpp +++ b/src/dbusifs/kglobalaccelhelper.cpp @@ -5,7 +5,7 @@ #include #include -const static QString kglobalService = QStringLiteral("org.ukui.KWin"); +const static QString kglobalService = QStringLiteral("org.kde.kglobalaccel"); const static QString kglobalPath = QStringLiteral("/kglobalaccel"); const static QString kglobalInterface = QStringLiteral("org.kde.KGlobalAccel"); diff --git a/src/widgets/authdialog.cpp b/src/widgets/authdialog.cpp index f3d224e..cf1c11f 100644 --- a/src/widgets/authdialog.cpp +++ b/src/widgets/authdialog.cpp @@ -211,8 +211,15 @@ void AuthDialog::initHeaderWidget() // 人脸识别重试 m_fRetryButton = new QPushButton(m_headerWidget); m_fRetryButton->setFocusPolicy(Qt::NoFocus); -// connect(m_fRetryButton,&QPushButton::clicked, -// this,&AuthDialog::onFRetryButtonClicked); + m_fRetryButton->setStyleSheet(QString("QPushButton{border-radius: %1px; border:0px solid white;background-color: rgba(255,255,255,10%);}" + "QPushButton::hover{background-color: rgb(255,255,255,30%);}" + "QPushButton::pressed {background-color: rgba(255,255,255,40%);}").arg((int)(77*scale))); + + QPixmap retryIcon = QIcon::fromTheme("view-refresh-symbolic").pixmap(48, 48); + m_fRetryButton->setIcon(drawSymbolicColoredPixmap(retryIcon, "white")); + m_fRetryButton->setIconSize(QSize(48, 48)); + connect(m_fRetryButton,&QPushButton::clicked, + this,&AuthDialog::onFRetryButtonClicked); m_fRetryButton->hide(); headerLayout->addWidget(m_fRetryButton); @@ -335,12 +342,19 @@ void AuthDialog::updateUI() m_labelHeadImg->setPixmap(userIcon); m_nameLabel->setText(m_curUserInfo.fullName()); + + m_fRetryButton->setStyleSheet(QString("QPushButton{border-radius: %1px; border:0px solid white;background-color: rgba(255,255,255,10%);}" + "QPushButton::hover{background-color: rgb(255,255,255,30%);}" + "QPushButton::pressed {background-color: rgba(255,255,255,40%);}").arg((int)(77*scale))); + m_fRetryButton->setFixedSize(154*scale, 154*scale); + m_fRetryButton->setIconSize(QSize(48*scale, 48*scale)); } void AuthDialog::startLoadingUkey() { //isLoadingUkey = true; - m_ukeyLoadingWidget->show(); + if (m_ukeyLoadingWidget) + m_ukeyLoadingWidget->show(); m_ukeyPasswordEdit->hide(); m_ukeyMessageLabel->hide(); if(!m_loadingTimer) @@ -1616,7 +1630,10 @@ void AuthDialog::onDeviceChanged(unsigned uCurLoginOptType, const DeviceInfoPtr authMode = BIOMETRIC; m_deviceInfo = deviceInfo; - switchLoginOptType(uCurLoginOptType); + if (uCurLoginOptType == LOGINOPT_TYPE_FACE) + switchLoginOptType(uCurLoginOptType, true); + else + switchLoginOptType(uCurLoginOptType); if(!isBioSuccess && deviceInfo) startBioAuth(); }