diff --git a/src/DaemonReconnectWindow.qml b/src/DaemonReconnectWindow.qml index ad6fd056423dc12d28fa5ec2edc033e2b63dfcd2..8d7a64755ed73aa33a4ce3bea29a17eb7a43e412 100644 --- a/src/DaemonReconnectWindow.qml +++ b/src/DaemonReconnectWindow.qml @@ -62,8 +62,6 @@ ApplicationWindow { anchors.fill: parent - smooth: true - antialiasing: true source: "qrc:/images/logo-jami-standard-coul.svg" } diff --git a/src/commoncomponents/PushButton.qml b/src/commoncomponents/PushButton.qml index 5d9710aa170510570c52951433432fcbe367b950..0cd0bdb68ee018b27485487cb4f1d8309af6b7fb 100644 --- a/src/commoncomponents/PushButton.qml +++ b/src/commoncomponents/PushButton.qml @@ -102,22 +102,13 @@ AbstractButton { return normalImageSource } - layer { - enabled: imageColor || checkedColor - effect: ColorOverlay { - id: overlay - color: { - if (checked && checkedImageColor) - return checkedImageColor - else if (imageColor) - return imageColor - else - return JamiTheme.transparentColor - } - } - // Mipmap does not render correctly on linux - mipmap: false - smooth: true + color: { + if (checked && checkedImageColor) + return checkedImageColor + else if (imageColor) + return imageColor + else + return JamiTheme.transparentColor } } diff --git a/src/commoncomponents/ResponsiveImage.qml b/src/commoncomponents/ResponsiveImage.qml index 6395058249adad106c954959375c4935a839c610..ee8135965185d53c87eb531bddcb269699252d6f 100644 --- a/src/commoncomponents/ResponsiveImage.qml +++ b/src/commoncomponents/ResponsiveImage.qml @@ -22,7 +22,7 @@ import QtGraphicalEffects 1.14 import net.jami.Models 1.0 -Image { +Item { id: root property real containerWidth: 30 @@ -31,8 +31,8 @@ Image { property int padding: 0 property point offset: Qt.point(0, 0) - property string normalSource - property string checkedSource + property alias source: image.source + property alias status: image.status property string color: "transparent" property bool isSvg: { @@ -47,29 +47,37 @@ Image { width: Math.trunc(containerWidth * Math.sqrt(2) * 0.5) + 3 - padding height: Math.trunc(containerHeight * Math.sqrt(2) * 0.5) + 3 - padding - fillMode: Image.PreserveAspectFit - smooth: false - antialiasing: false - asynchronous: true + Connections { + target: ScreenInfo - layer { - enabled: true - effect: ColorOverlay { color: root.color } + function onDevicePixelRatioChanged() { + image.setSourceSize() + } } - function setSourceSize() { - sourceSize = undefined - if (isSvg) - sourceSize = Qt.size(width, height) - } + Image { + id: image - Connections { - target: ScreenInfo + anchors.fill: root - function onDevicePixelRatioChanged() { - setSourceSize() + fillMode: Image.PreserveAspectFit + smooth: true + antialiasing: true + asynchronous: true + visible: false + + function setSourceSize() { + sourceSize = undefined + if (isSvg) + sourceSize = Qt.size(width, height) } + + Component.onCompleted: setSourceSize() } - Component.onCompleted: setSourceSize() + ColorOverlay { + anchors.fill: image + source: image + color: root.color + } } diff --git a/src/commoncomponents/contextmenu/GeneralMenuItem.qml b/src/commoncomponents/contextmenu/GeneralMenuItem.qml index 6aa3edc7e83232aa75ed187d6411fa2537497d16..e72dd6160285b41fb980d1aa371327e0407b4f53 100644 --- a/src/commoncomponents/contextmenu/GeneralMenuItem.qml +++ b/src/commoncomponents/contextmenu/GeneralMenuItem.qml @@ -74,7 +74,6 @@ MenuItem { visible: status === Image.Ready color: iconColor !== "" ? iconColor : JamiTheme.textColor - smooth: true opacity: 0.7 } diff --git a/src/mainview/components/AboutPopUp.qml b/src/mainview/components/AboutPopUp.qml index 57e60590baf9247704c60e0925f7c2a563c71b34..95353319e2346e332ab07f855e98032e1086dc22 100644 --- a/src/mainview/components/AboutPopUp.qml +++ b/src/mainview/components/AboutPopUp.qml @@ -66,9 +66,6 @@ ModalPopup { Layout.preferredWidth: 250 Layout.preferredHeight: 88 - smooth: true - antialiasing: true - source: JamiTheme.darkTheme? "qrc:/images/logo-jami-standard-coul-white.svg" : "qrc:/images/logo-jami-standard-coul.svg" diff --git a/src/mainview/components/AccountComboBox.qml b/src/mainview/components/AccountComboBox.qml index 36a4eb2a11fca77f2e0b3b5f9901592f237d651f..74ac5f3206ba8fe6f8cb30751a461a791859f788 100644 --- a/src/mainview/components/AccountComboBox.qml +++ b/src/mainview/components/AccountComboBox.qml @@ -188,16 +188,12 @@ Label { ResponsiveImage { id: arrowDropDown + anchors.verticalCenter: parent.verticalCenter + width: 24 height: 24 - anchors.verticalCenter: parent.verticalCenter - layer { - enabled: true - effect: ColorOverlay { - color: JamiTheme.textColor - } - } + color: JamiTheme.textColor source: !root.popup.opened ? "qrc:/images/icons/expand_more-24px.svg" : diff --git a/src/mainview/components/CallButtonDelegate.qml b/src/mainview/components/CallButtonDelegate.qml index 786f7e344c1abc829b8ff1302dee22e4fb276eca..c636b5165347ea3273fa37dbb78191dc1a8780aa 100644 --- a/src/mainview/components/CallButtonDelegate.qml +++ b/src/mainview/components/CallButtonDelegate.qml @@ -116,7 +116,6 @@ ItemDelegate { containerHeight: size anchors.centerIn: parent - horizontalAlignment: Text.AlignHCenter source: ItemAction ? ItemAction.icon.source : "" color: ItemAction ? ItemAction.icon.color : null @@ -189,7 +188,6 @@ ItemDelegate { contentItem: ResponsiveImage { source: isVertical ? "qrc:/images/icons/chevron_left_black_24dp.svg" : "qrc:/images/icons/expand_less-24px.svg" - smooth: true color: "white" } @@ -217,7 +215,6 @@ ItemDelegate { IconSource : (menuItem.ListView.isCurrentItem ? "qrc:/images/icons/check_box-24px.svg" : "qrc:/images/icons/check_box_outline_blank-24px.svg") - smooth: true color: "white" } Text { diff --git a/src/mainview/components/ContactSearchBar.qml b/src/mainview/components/ContactSearchBar.qml index ef817b4bb536b07b4448898238ffcfc58405191d..37eb3f292118c75bd6b7d352981601c20adabda7 100644 --- a/src/mainview/components/ContactSearchBar.qml +++ b/src/mainview/components/ContactSearchBar.qml @@ -63,11 +63,7 @@ Rectangle { height: 20 source: "qrc:/images/icons/ic_baseline-search-24px.svg" - - layer.enabled: true - layer.effect: ColorOverlay { - color: JamiTheme.primaryForegroundColor - } + color: JamiTheme.primaryForegroundColor } TextField { diff --git a/src/mainview/components/ParticipantOverlay.qml b/src/mainview/components/ParticipantOverlay.qml index cb64ddd700d29300f50c7069c3d626826000647d..7aa24d2c14039326ee803d31a340c42b221184af 100644 --- a/src/mainview/components/ParticipantOverlay.qml +++ b/src/mainview/components/ParticipantOverlay.qml @@ -129,57 +129,46 @@ Item { ResponsiveImage { id: isHostIndicator - visible: participantIsHost - Layout.alignment: Qt.AlignVCenter Layout.leftMargin: 6 + containerHeight: 12 containerWidth: 12 + visible: participantIsHost + source: "qrc:/images/icons/star_outline-24px.svg" - layer { - enabled: true - effect: ColorOverlay { color: JamiTheme.whiteColor } - mipmap: false - smooth: true - } + color: JamiTheme.whiteColor } ResponsiveImage { id: isModeratorIndicator - visible: participantIsModerator - Layout.alignment: Qt.AlignVCenter Layout.leftMargin: 6 + containerHeight: 12 containerWidth: 12 + visible: participantIsModerator + source: "qrc:/images/icons/moderator.svg" - layer { - enabled: true - effect: ColorOverlay { color: JamiTheme.whiteColor } - mipmap: false - smooth: true - } + color: JamiTheme.whiteColor } ResponsiveImage { id: isMutedIndicator - visible: participantIsMuted Layout.alignment: Qt.AlignVCenter Layout.leftMargin: 6 + containerHeight: 12 containerWidth: 12 + visible: participantIsMuted + source: "qrc:/images/icons/mic_off-24px.svg" - layer { - enabled: true - effect: ColorOverlay { color: JamiTheme.whiteColor } - mipmap: false - smooth: true - } + color: JamiTheme.whiteColor } } } diff --git a/src/mainview/components/WelcomePage.qml b/src/mainview/components/WelcomePage.qml index 279b9dbc82ad1f4b7030945b0d71f89524f6d457..23c07095afd37c3af44e3b01eb82e161e40ec82a 100644 --- a/src/mainview/components/WelcomePage.qml +++ b/src/mainview/components/WelcomePage.qml @@ -54,10 +54,9 @@ Rectangle { Layout.preferredHeight: Math.min(welcomePageColumnLayout.width / 3, 110) Layout.bottomMargin: 10 - smooth: true - antialiasing: true - - source: JamiTheme.darkTheme? "qrc:/images/logo-jami-standard-coul-white.svg" : "qrc:/images/logo-jami-standard-coul.svg" + source: JamiTheme.darkTheme ? + "qrc:/images/logo-jami-standard-coul-white.svg" : + "qrc:/images/logo-jami-standard-coul.svg" } Label { diff --git a/src/wizardview/components/WelcomePage.qml b/src/wizardview/components/WelcomePage.qml index 48ba545b518a2f2af40ff3b36d68fa3546ba224b..482d94d4befd4c6ac8019b91c5c4c27668acb4b1 100644 --- a/src/wizardview/components/WelcomePage.qml +++ b/src/wizardview/components/WelcomePage.qml @@ -69,10 +69,9 @@ Rectangle { Layout.preferredWidth: 330 Layout.preferredHeight: 110 - smooth: true - antialiasing: true - - source: JamiTheme.darkTheme ? "qrc:/images/logo-jami-standard-coul-white.svg" : "qrc:/images/logo-jami-standard-coul.svg" + source: JamiTheme.darkTheme ? + "qrc:/images/logo-jami-standard-coul-white.svg" : + "qrc:/images/logo-jami-standard-coul.svg" } MaterialButton {