feat: optimize tray icons

pull/18/head
kate 5 years ago
parent dfd45b3923
commit 706a399f30

@ -40,7 +40,7 @@ ControlCenterDialog {
property var defaultSink: paSinkModel.defaultSink
property bool bluetoothDisConnected: Bluez.Manager.bluetoothBlocked
property var defaultSinkValue: defaultSink ? defaultSink.volume / PulseAudio.MaximalVolume * 100.0 : -1
property var defaultSinkValue: defaultSink ? defaultSink.volume / PulseAudio.NormalVolume * 100.0 : -1
property var borderColor: windowHelper.compositing ? FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.3)
: Qt.rgba(0, 0, 0, 0.2) : FishUI.Theme.darkMode ? Qt.rgba(255, 255, 255, 0.15)

@ -97,7 +97,7 @@ ListView {
height: width
source: model.iconName ? model.iconName : model.icon
antialiasing: true
smooth: false
smooth: true
visible: !dragStarted
}

@ -262,6 +262,12 @@ void StatusNotifierItemSource::refreshCallback(QDBusPendingCallWatcher *call)
m_title = properties[QStringLiteral("Title")].toString();
m_iconName = properties[QStringLiteral("IconName")].toString();
// Kate: search icon by id
QString id = properties[QStringLiteral("Id")].toString();
if (!QIcon::fromTheme(id).isNull()) {
m_iconName = id;
}
// Reion: For icon theme path
QString iconThemePath = properties[QStringLiteral("IconThemePath")].toString();
if (!iconThemePath.isEmpty()) {

Loading…
Cancel
Save