Merge tag 'upstream/4.10.2.2' into packaging/openkylin/nile

4.10.2.2-release
This commit is contained in:
hewenfei 2024-06-01 10:28:40 +08:00
commit c8a45661fb
4 changed files with 13 additions and 1 deletions

View File

@ -37,6 +37,8 @@ Item {
UkuiItems.Button {
id: fullScreenButton
visible: !isLiteMode
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -82,6 +84,8 @@ Item {
UkuiItems.Button {
id: userInfoButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -110,6 +114,8 @@ Item {
UkuiItems.Button {
id: computerButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -138,6 +144,8 @@ Item {
UkuiItems.Button {
id: setButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
@ -167,6 +175,9 @@ Item {
UkuiItems.Button {
id: powerButton
background.paletteRole: Platform.Theme.WindowText
background.alpha: containsPress ? 0.15 : containsMouse ? 0.08 : 0.0
Layout.preferredWidth: 36
Layout.preferredHeight: 36
Layout.alignment: Qt.AlignHCenter

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -2,5 +2,6 @@
<qresource prefix="/res">
<file>icon/application-x-desktop.png</file>
<file>icon/pad_mainpower.svg</file>
<file>icon/default-community-image.png</file>
</qresource>
</RCC>

View File

@ -52,7 +52,7 @@ QString SidebarButtonUtils::getRealName()
QString SidebarButtonUtils::getIconFile()
{
if (m_currentUserInfo.iconFile.isEmpty()) {
if (m_currentUserInfo.iconFile.isEmpty() || m_currentUserInfo.iconFile.endsWith("/.face")) {
return {DEFAULT_USER_ICON_FILE};
}