Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze Style for QQC2
Commits
1b3f26b7
Commit
1b3f26b7
authored
Feb 15, 2021
by
Noah Davis
🌵
Browse files
[PageIndicator] Make dot bolder and add license
parent
c7070b23
Changes
1
Hide whitespace changes
Inline
Side-by-side
style/qtquickcontrols/PageIndicator.qml
View file @
1b3f26b7
//NOTE: replace this
/* SPDX-FileCopyrightText: 2017 The Qt Company Ltd.
* SPDX-FileCopyrightText: 2020 Noah Davis <noahadvs@gmail.com>
* SPDX-License-Identifier: LicenseRef-KDE-Accepted-LGPL
*/
import
QtQuick
2.15
import
QtQuick
.
Controls
2.15
as
Controls
import
QtQuick
.
Controls
.
impl
2.15
import
QtQuick
.
Templates
2.15
as
T
import
org
.
kde
.
kirigami
2.14
as
Kirigami
T.PageIndicator
{
id
:
control
...
...
@@ -13,18 +15,23 @@ T.PageIndicator {
implicitHeight
:
Math
.
max
(
implicitBackgroundHeight
+
topInset
+
bottomInset
,
implicitContentHeight
+
topPadding
+
bottomPadding
)
padding
:
6
spacing
:
6
padding
:
Kirigami
.
Units
.
mediumSpacing
spacing
:
Kirigami
.
Units
.
mediumSpacing
delegate
:
Rectangle
{
implicitWidth
:
8
implicitHeight
:
8
// Using ShadowedRectangle because it makes smoother circles than Rectangle
delegate
:
Kirigami.ShadowedRectangle
{
implicitWidth
:
implicitHeight
implicitHeight
:
{
let
h
=
Kirigami
.
Units
.
inlineControlHeight
/
2
h
-=
h
%
2
return
h
}
radius
:
width
/
2
color
:
control
.
palette
.
dark
radius
:
height
/
2
color
:
Kirigami
.
Theme
.
textColor
opacity
:
index
===
currentIndex
?
0.95
:
pressed
?
0.7
:
0.
45
Behavior
on
opacity
{
OpacityAnimator
{
duration
:
100
}
}
opacity
:
index
===
currentIndex
?
1
:
pressed
?
0.
6
7
:
0.
33
Behavior
on
opacity
{
OpacityAnimator
{
duration
:
Kirigami
.
Units
.
shortDuration
}
}
}
contentItem
:
Row
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment