MauiKit Image Tools

ColourBar.qml
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import org.mauikit.controls as Maui
6
7import org.kde.kquickimageeditor as KQuickImageEditor
8import Qt5Compat.GraphicalEffects
9
10ColumnLayout
11{
12 id: control
13
14 spacing: 0
15
16 property alias brightnessButton: _brightnessButton
17 property alias contrastButton : _contrastButton
18 property alias saturationButton : _saturationButton
19
20
21 Maui.ToolBar
22 {
23 id: _sliderToolBar
24 Layout.fillWidth: true
25 middleContent: Slider
26 {
27 id: _slider
28 Layout.fillWidth: true
29 value: 0
30 from: -100
31 to: 100
32 stepSize: 1
33 }
34
35 background: Rectangle
36 {
37 color: Maui.Theme.backgroundColor
38 }
39 }
40
41 Maui.ToolBar
42 {
43 position: ToolBar.Footer
44 Layout.fillWidth: true
45
46 background: Rectangle
47 {
48 color: Maui.Theme.backgroundColor
49 }
50
51 middleContent: [
52 ToolButton
53 {
54 id: _saturationButton
55 checkable: true
56 autoExclusive: true
57 icon.name: "transform-crop"
58 text: i18nc("@action:button Crop an image", "Saturation");
59 },
60
61 ToolButton
62 {
63 id: _contrastButton
64 autoExclusive: true
65 icon.name: "transform-rotate"
66 checkable: true
67 text: i18nc("@action:button Rotate an image", "Contrast");
68 } ,
69
70 ToolButton
71 {
72 id: _exposureButton
73 autoExclusive: true
74 icon.name: "transform-rotate"
75 checkable: true
76 text: i18nc("@action:button Rotate an image", "Exposure");
77 },
78
79 ToolButton
80 {
81 id: _highlightsButton
82 autoExclusive: true
83 icon.name: "transform-rotate"
84 checkable: true
85 text: i18nc("@action:button Rotate an image", "Highlights");
86 },
87
88 ToolButton
89 {
90 id: _shadowsButton
91 autoExclusive: true
92 icon.name: "transform-rotate"
93 checkable: true
94 text: i18nc("@action:button Rotate an image", "Shadows");
95 },
96
97
98 ToolButton
99 {
100 id: _brightnessButton
101 autoExclusive: true
102 icon.name: "transform-rotate"
103 checkable: true
104 text: i18nc("@action:button Rotate an image", "Brightness");
105 }
106 ]
107
108 leftContent: ToolButton
109 {
110 // text: i18nd("mauikitimagetools","Accept")
111 icon.name: "dialog-apply"
112 onClicked:
113 {
114
115 }
116 }
117
118 rightContent: ToolButton
119 {
120 // text: i18nd("mauikitimagetools","Cancel")
121 icon.name: "dialog-cancel"
122 onClicked:
123 {
124 }
125 }
126 }
127}
128
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:53:30 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.