fix(wlcom icon):Desktop Environment list Add wlcom icon
Description: 桌面环境列表添加wlcom的图标 Log: bug#204422 【wlcom】【登录】登录界面右下角环境选择处wlcom图标为空白
This commit is contained in:
parent
10760e68e4
commit
3100a39caa
|
@ -0,0 +1 @@
|
|||
<svg id="图层_1" data-name="图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.cls-1{fill:#fff;}</style></defs><g id="KW"><g id="ukui"><path class="cls-1" d="M12,1A11,11,0,1,1,1,12,11,11,0,0,1,12,1m0-1A12,12,0,1,0,24,12,12,12,0,0,0,12,0Z"/></g><polygon class="cls-1" points="19 7 19 13.4 16.5 9.5 14 13.4 14 7 12 7 12 16.99 14 16.99 16.5 12.7 19 16.99 20.99 16.99 21 7 19 7"/><rect class="cls-1" x="3" y="7" width="2" height="10"/><polygon class="cls-1" points="5.96 12 10.96 7 7.97 7 4 11.13 4 12.87 8 16.98 11.04 16.98 5.96 12"/></g></svg>
|
After Width: | Height: | Size: 571 B |
|
@ -397,6 +397,8 @@ void LockWidget::initButtonWidget()
|
|||
QString sessionPrefix = strCurSession.left(strCurSession.indexOf('-'));
|
||||
if(strCurSession == "ukui-wayland")
|
||||
sessionPrefix = "ukui_wayland";
|
||||
if(strCurSession == "kylin-wlcom")
|
||||
sessionPrefix = "kylin_wlcom";
|
||||
strCurSession = IMAGE_DIR + QString("badges/%1_badge.svg")
|
||||
.arg(sessionPrefix.toLower());
|
||||
QFile iconFile(strCurSession);
|
||||
|
@ -692,6 +694,8 @@ void LockWidget::onSessionChanged(const QString &strSession)
|
|||
QString sessionPrefix = strCurSession.left(strCurSession.indexOf('-'));
|
||||
if(strCurSession == "ukui-wayland")
|
||||
sessionPrefix = "ukui_wayland";
|
||||
if(strCurSession == "kylin-wlcom")
|
||||
sessionPrefix = "kylin_wlcom";
|
||||
strCurSession = IMAGE_DIR + QString("badges/%1_badge.svg")
|
||||
.arg(sessionPrefix.toLower());
|
||||
QFile iconFile(strCurSession);
|
||||
|
|
|
@ -80,6 +80,8 @@ void SessionItemWidget::setSessionName(QString name)
|
|||
QString sessionPrefix = name.left(name.indexOf('-'));
|
||||
if(name == "ukui-wayland")
|
||||
sessionPrefix = "ukui_wayland";
|
||||
if(name == "kylin-wlcom")
|
||||
sessionPrefix = "kylin_wlcom";
|
||||
m_strImgPath = IMAGE_DIR + QString("badges/%1_badge.svg")
|
||||
.arg(sessionPrefix.toLower());
|
||||
QFile iconFile(m_strImgPath);
|
||||
|
|
Loading…
Reference in New Issue