Commit 1ac57460 authored by Camilo higuita's avatar Camilo higuita

back to using kirigami icons

parent 4820ca67
pkgname=mauikit-git
pkgver=r210.32b20e6
pkgrel=1
pkgdesc='Utilities and "templated" controls based on Kirigami and QCC2 that follow the ongoing work on the Maui HIG'
arch=(x86_64 i686 arm armv6h armv7h aarch64)
url="https://mauikit.org/"
license=(GPL3)
depends=(qt5-base qt5-declarative qt5-svg qt5-quickcontrols2 kio)
makedepends=(git cmake extra-cmake-modules qt5-webengine)
provides=(mauikit)
conflicts=(mauikit)
source=("${pkgname}::git+https://invent.kde.org/mauikit")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}
......@@ -88,31 +88,31 @@ ToolButton
visible: control.showIndicator && control.visible
}
background: Rectangle
{
id: _background
implicitHeight: control.visible ? control.size : 0
implicitWidth: control.visible ? control.size : 0
anchors.centerIn: control.icon
color: /*(down || pressed || checked) */ checked && enabled ?
Qt.lighter(colorScheme.highlightColor, 1.2) : colorScheme.backgroundColor
radius: unit * 3
opacity: (down || pressed || checked) && enabled ? 0.5 : 1
border.color: colorScheme.borderColor
}
contentItem: IconLabel
{
id: _iconLabel
spacing: control.display === ToolButton.TextUnderIcon ? space.tiny : control.spacing
mirrored: control.mirrored
display: control.display
icon: control.icon
text: control.text
font: control.font
color: control.icon.color
}
// background: Rectangle
// {
// id: _background
// implicitHeight: control.visible ? control.size : 0
// implicitWidth: control.visible ? control.size : 0
//
// anchors.centerIn: control.icon
// color: /*(down || pressed || checked) */ checked && enabled ?
// Qt.lighter(colorScheme.highlightColor, 1.2) : colorScheme.backgroundColor
// radius: unit * 3
// opacity: (down || pressed || checked) && enabled ? 0.5 : 1
// border.color: colorScheme.borderColor
// }
//
// contentItem: IconLabel
// {
// id: _iconLabel
// spacing: control.display === ToolButton.TextUnderIcon ? space.tiny : control.spacing
// mirrored: control.mirrored
// display: control.display
// icon: control.icon
// text: control.text
// font: control.font
// color: control.icon.color
// }
// background: Rectangle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment