Svg -> Webp

This commit is contained in:
Sarah Jamie Lewis 2020-11-17 12:02:12 -08:00
parent 80eaf1a0d2
commit 983dd84efa
4 changed files with 10 additions and 9 deletions

View File

@ -40,7 +40,7 @@ Rectangle {
Image { Image {
id: ico id: ico
source: icon!="" ? gcd.assetPath + "fontawesome/"+icon+".svg" : ""; source: icon!="" ? gcd.assetPath + "fontawesome/"+icon+".webp" : "";
visible: icon != "" visible: icon != ""
height: button.height / 2 height: button.height / 2
sourceSize.height: button.height / 2 sourceSize.height: button.height / 2

View File

@ -62,7 +62,7 @@ ComboBox {
Icon { Icon {
iconColor: Theme.toolbarIconColor iconColor: Theme.toolbarIconColor
source: gcd.assetPath + "core/chevron_left-24px.svg" source: gcd.assetPath + "core/chevron_left-24px.webp"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter

View File

@ -48,6 +48,7 @@ Rectangle {
// Apparently qml can now only DOWN-SCALE/SHRINK the SVG, so with this hack it which won't cause blurriness/pixelation // Apparently qml can now only DOWN-SCALE/SHRINK the SVG, so with this hack it which won't cause blurriness/pixelation
sourceSize.width: size*2 sourceSize.width: size*2
sourceSize.height: size*2 sourceSize.height: size*2
} }
ColorOverlay{ ColorOverlay{

View File

@ -37,13 +37,13 @@ Rectangle { // Global Toolbar
Icon { Icon {
id: btnLeftMenu id: btnLeftMenu
iconColor: Theme.toolbarIconColor iconColor: Theme.toolbarIconColor
source: gcd.assetPath + "core/menu-24px.svg" source: gcd.assetPath + "core/menu-24px.webp"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left anchors.left: parent.left
width: 30 width: 30 * gcd.themeScale
height: 30 height: 30 * gcd.themeScale
onClicked: { leftMenu() } onClicked: { leftMenu() }
} }
@ -51,12 +51,12 @@ Rectangle { // Global Toolbar
Icon { Icon {
id: btnLeftBack id: btnLeftBack
iconColor: Theme.toolbarIconColor iconColor: Theme.toolbarIconColor
source: gcd.assetPath + "core/chevron_left-24px.svg" source: gcd.assetPath + "core/chevron_left-24px.webp"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left anchors.left: parent.left
width: 30 width: 30 * gcd.themeScale
height: 30 height: 30 * gcd.themeScale
onClicked: { back() } onClicked: { back() }
} }
@ -90,7 +90,7 @@ Rectangle { // Global Toolbar
Icon { Icon {
id: btnRightMenu id: btnRightMenu
iconColor: Theme.toolbarIconColor iconColor: Theme.toolbarIconColor
source: gcd.assetPath + "core/more_vert-24px.svg" source: gcd.assetPath + "core/more_vert-24px.webp"
visible: false visible: false
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter