diff --git a/Modules/Bar/Widgets/ControlCenter.qml b/Modules/Bar/Widgets/ControlCenter.qml index d57a4653..7fc2649a 100644 --- a/Modules/Bar/Widgets/ControlCenter.qml +++ b/Modules/Bar/Widgets/ControlCenter.qml @@ -69,7 +69,8 @@ NIconButton { } } - // If we have a custom path or distro logo, don't use the theme icon. + // If we have a custom path and not using distro logo, use the theme icon. + // If using distro logo, don't use theme icon. icon: (customIconPath === "" && !useDistroLogo) ? customIcon : "" tooltipText: I18n.tr("tooltips.open-control-center") tooltipDirection: BarService.getTooltipDirection() @@ -145,10 +146,10 @@ NIconButton { width: root.width * 0.8 height: width source: { - if (customIconPath !== "") - return customIconPath.startsWith("file://") ? customIconPath : "file://" + customIconPath; if (useDistroLogo) return HostService.osLogo; + if (customIconPath !== "") + return customIconPath.startsWith("file://") ? customIconPath : "file://" + customIconPath; return ""; } visible: source !== "" diff --git a/Modules/Panels/Settings/Bar/WidgetSettings/ControlCenterSettings.qml b/Modules/Panels/Settings/Bar/WidgetSettings/ControlCenterSettings.qml index 812c7f9a..8f060ec3 100644 --- a/Modules/Panels/Settings/Bar/WidgetSettings/ControlCenterSettings.qml +++ b/Modules/Panels/Settings/Bar/WidgetSettings/ControlCenterSettings.qml @@ -36,10 +36,6 @@ ColumnLayout { checked: valueUseDistroLogo onToggled: function (checked) { valueUseDistroLogo = checked; - if (checked) { - valueCustomIconPath = ""; - valueIcon = ""; - } } } @@ -84,14 +80,14 @@ ColumnLayout { Layout.alignment: Qt.AlignVCenter radius: width * 0.5 imagePath: valueCustomIconPath - visible: valueCustomIconPath !== "" + visible: valueCustomIconPath !== "" && !valueUseDistroLogo } NIcon { Layout.alignment: Qt.AlignVCenter icon: valueIcon pointSize: Style.fontSizeXXL * 1.5 - visible: valueIcon !== "" && valueCustomIconPath === "" + visible: valueIcon !== "" && valueCustomIconPath === "" && !valueUseDistroLogo } }