Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
415dc3a3
Commit
415dc3a3
authored
Apr 07, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Styles] Add scale to styles
parent
42a25f7b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
34 deletions
+34
-34
ButtonRow.qml
src/controls/ButtonRow.qml
+5
-5
ButtonStyle.qml
src/styles/ButtonStyle.qml
+2
-2
CheckBoxStyle.qml
src/styles/CheckBoxStyle.qml
+8
-8
GrooveStyle.qml
src/styles/GrooveStyle.qml
+2
-2
MenuBarStyle.qml
src/styles/MenuBarStyle.qml
+2
-2
SliderStyle.qml
src/styles/SliderStyle.qml
+7
-7
TextFieldStyle.qml
src/styles/TextFieldStyle.qml
+3
-3
ToolBarStyle.qml
src/styles/ToolBarStyle.qml
+2
-2
ToolButtonStyle.qml
src/styles/ToolButtonStyle.qml
+3
-3
No files found.
src/controls/ButtonRow.qml
View file @
415dc3a3
...
...
@@ -36,7 +36,7 @@ Rectangle {
id
:
main
width
:
childrenRect
.
width
color
:
"
#313131
"
height
:
4
0
height
:
4
*
mm
property
ListModel
model
:
ListModel
{}
property
bool
enabled
:
true
property
int
currentIndex
:
-
1
...
...
@@ -51,10 +51,10 @@ Rectangle {
Rectangle
{
id
:
selecter
x
:
rowElement
.
children
[
main
.
currentIndex
].
x
||
0
y
:
-
5
y
:
-
0.5
*
mm
width
:
rowElement
.
children
[
main
.
currentIndex
].
width
||
0
height
:
5
0
height
:
5
*
mm
color
:
"
#0091e5
"
visible
:
main
.
currentIndex
>
-
1
...
...
@@ -74,10 +74,10 @@ Rectangle {
model
:
main
.
model
delegate
:
Rectangle
{
id
:
rowItem
height
:
5
0
height
:
5
*
mm
width
:
text
.
width
+
(
text
.
width
/
name
.
length
*
2
)
y
:
-
5
y
:
-
0.5
*
mm
color
:
"
transparent
"
MouseArea
{
...
...
src/styles/ButtonStyle.qml
View file @
415dc3a3
...
...
@@ -30,8 +30,8 @@ ButtonStyle {
// The background of the button.
background
:
Rectangle
{
implicitWidth
:
24
0
implicitHeight
:
5
0
implicitWidth
:
24
*
mm
implicitHeight
:
5
*
mm
clip
:
true
color
:
control
.
primary
?
Theme
.
primaryButton
.
background
:
Theme
.
button
.
background
...
...
src/styles/CheckBoxStyle.qml
View file @
415dc3a3
...
...
@@ -39,21 +39,21 @@ CheckBoxStyle {
indicator
:
Rectangle
{
id
:
background
color
:
"
transparent
"
implicitWidth
:
7
2
implicitHeight
:
3
2
implicitWidth
:
7
.2
*
mm
implicitHeight
:
3
.2
*
mm
Rectangle
{
id
:
back1
implicitWidth
:
7
2
implicitHeight
:
2
8
implicitWidth
:
7
.2
*
mm
implicitHeight
:
2
.8
*
mm
color
:
Theme
.
checkbox
.
back1
anchors.centerIn
:
parent
}
Rectangle
{
id
:
back2
implicitWidth
:
7
2
implicitHeight
:
2
8
implicitWidth
:
7
.2
*
mm
implicitHeight
:
2
.8
*
mm
color
:
Theme
.
checkbox
.
back2
anchors.centerIn
:
parent
}
...
...
@@ -80,7 +80,7 @@ CheckBoxStyle {
Component.onCompleted
:
{
back1
.
opacity
=
control
.
checked
?
1
:
0
back2
.
opacity
=
control
.
checked
?
0
:
1
ball
.
x
=
control
.
checked
?
3
2
:
0
ball
.
x
=
control
.
checked
?
3
.2
*
mm
:
0
}
SequentialAnimation
{
...
...
@@ -89,7 +89,7 @@ CheckBoxStyle {
NumberAnimation
{
target
:
ball
property
:
"
x
"
to
:
3
2
to
:
3
.2
*
mm
duration
:
120
}
NumberAnimation
{
...
...
src/styles/GrooveStyle.qml
View file @
415dc3a3
...
...
@@ -22,8 +22,8 @@ import QtQuick.Controls.Styles.Nemo 1.0
Component
{
Rectangle
{
implicitHeight
:
1
6
implicitWidth
:
44
0
implicitHeight
:
1
.6
*
mm
implicitWidth
:
44
*
mm
color
:
Theme
.
groove
.
background
Rectangle
{
antialiasing
:
true
...
...
src/styles/MenuBarStyle.qml
View file @
415dc3a3
...
...
@@ -59,8 +59,8 @@ Style {
}
property
Component
menuItem
:
Rectangle
{
width
:
text
.
width
+
1
2
height
:
text
.
height
+
4
width
:
text
.
width
+
1
.2
*
mm
height
:
text
.
height
+
0.4
*
mm
color
:
sunken
?
"
#49d
"
:
__backgroundColor
SystemPalette
{
id
:
syspal
}
...
...
src/styles/SliderStyle.qml
View file @
415dc3a3
...
...
@@ -29,9 +29,9 @@ SliderStyle{
color
:
"
black
"
border.color
:
"
#0091e5
"
border.width
:
2
implicitWidth
:
3
4
implicitHeight
:
3
4
radius
:
1
6
implicitWidth
:
3
.4
*
mm
implicitHeight
:
3
.4
*
mm
radius
:
1
.6
*
mm
visible
:
control
.
enabled
Text
{
...
...
@@ -46,8 +46,8 @@ SliderStyle{
groove
:
Rectangle
{
id
:
grove
implicitHeight
:
1
6
implicitWidth
:
44
0
implicitHeight
:
1
.6
*
mm
implicitWidth
:
44
*
mm
color
:
"
#313131
"
z
:
1
Rectangle
{
...
...
@@ -72,9 +72,9 @@ SliderStyle{
verticalCenter
:
dataLine
.
verticalCenter
}
source
:
"
images/slider-handle-left.svg
"
height
:
3
4
height
:
3
.4
*
mm
visible
:
control
.
enabled
width
:
(
styleData
.
handlePosition
>
8
0
)
?
80
:
styleData
.
handlePosition
width
:
(
styleData
.
handlePosition
>
8
*
mm
)
?
8
*
mm
:
styleData
.
handlePosition
sourceSize.width
:
width
sourceSize.height
:
height
}
...
...
src/styles/TextFieldStyle.qml
View file @
415dc3a3
...
...
@@ -25,11 +25,11 @@ TextFieldStyle {
selectedTextColor
:
Theme
.
textField
.
selectedTextColor
selectionColor
:
Theme
.
textField
.
selectionColor
textColor
:
Theme
.
textField
.
selectedTextColor
font.pointSize
:
1
4
font.pointSize
:
1
.4
*
mm
font.family
:
Theme
.
textField
.
font
background
:
Item
{
anchors.leftMargin
:
1
6
anchors.rightMargin
:
1
6
anchors.leftMargin
:
1
.6
*
mm
anchors.rightMargin
:
1
.6
*
mm
opacity
:
control
.
enabled
?
1
:
0.6
Image
{
anchors.fill
:
parent
...
...
src/styles/ToolBarStyle.qml
View file @
415dc3a3
...
...
@@ -28,8 +28,8 @@ Style {
padding.bottom
:
3
property
Component
panel
:
Item
{
implicitHeight
:
7
5
implicitWidth
:
40
0
implicitHeight
:
7
.5
*
mm
implicitWidth
:
40
*
mm
Rectangle
{
anchors.fill
:
parent
color
:
Theme
.
toolBar
.
background
...
...
src/styles/ToolButtonStyle.qml
View file @
415dc3a3
...
...
@@ -31,8 +31,8 @@ Style {
id
:
styleitem
//TODO: Maybe we want to add a descriptive text at the bottom of the icon?
implicitWidth
:
5
0
implicitHeight
:
5
0
implicitWidth
:
5
*
mm
implicitHeight
:
5
*
mm
opacity
:
control
.
pressed
?
0.5
:
1
...
...
@@ -47,7 +47,7 @@ Style {
id
:
icon
anchors.fill
:
parent
fillMode
:
Image
.
PreserveAspectFit
anchors.margins
:
8
anchors.margins
:
0.8
*
mm
source
:
control
.
iconSource
}
}
...
...
Write
Preview
Markdown
is supported
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