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
01b527c0
Commit
01b527c0
authored
Oct 02, 2013
by
Aleksi Suomalainen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[textfield] Textfield styling
parent
e3e92d46
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
2 deletions
+47
-2
TextInputPage.qml
examples/touch/content/TextInputPage.qml
+6
-0
TextFieldStyle.qml
src/styles/TextFieldStyle.qml
+26
-1
ToolBarStyle.qml
src/styles/ToolBarStyle.qml
+0
-1
disabled-overlay-inverse.png
src/styles/images/disabled-overlay-inverse.png
+0
-0
ControlsStyleConfig.qml
src/styles/private/ControlsStyleConfig.qml
+5
-0
Theme1.js
src/styles/themes/Theme1.js
+5
-0
Theme2.js
src/styles/themes/Theme2.js
+5
-0
No files found.
examples/touch/content/TextInputPage.qml
View file @
01b527c0
...
@@ -83,6 +83,12 @@ Item {
...
@@ -83,6 +83,12 @@ Item {
readOnly
:
true
readOnly
:
true
}
}
TextField
{
anchors.margins
:
20
text
:
"
Disabled textfield
"
enabled
:
false
}
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
20
text
:
"
Text input
"
text
:
"
Text input
"
...
...
src/styles/TextFieldStyle.qml
View file @
01b527c0
...
@@ -19,7 +19,32 @@
...
@@ -19,7 +19,32 @@
import
QtQuick
2.1
import
QtQuick
2.1
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
TextFieldStyle
{
TextFieldStyle
{
selectedTextColor
:
Theme
.
textField
.
selectedTextColor
selectionColor
:
Theme
.
textField
.
selectionColor
textColor
:
Theme
.
textField
.
selectedTextColor
font.pixelSize
:
24
background
:
Item
{
implicitHeight
:
40
implicitWidth
:
320
anchors.leftMargin
:
16
anchors.rightMargin
:
16
opacity
:
control
.
enabled
?
1
:
0.6
Image
{
anchors.fill
:
parent
visible
:
!
control
.
enabled
source
:
"
images/disabled-overlay-inverse.png
"
fillMode
:
Image
.
Tile
}
Rectangle
{
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
2
width
:
parent
.
width
color
:
Theme
.
textField
.
selectionColor
}
}
}
}
src/styles/ToolBarStyle.qml
View file @
01b527c0
...
@@ -21,5 +21,4 @@ import QtQuick 2.1
...
@@ -21,5 +21,4 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Styles
.
Private
1.0
import
QtQuick
.
Controls
.
Styles
.
Private
1.0
ToolBarStyle
{
ToolBarStyle
{
}
}
src/styles/images/disabled-overlay-inverse.png
0 → 100644
View file @
01b527c0
281 Bytes
src/styles/private/ControlsStyleConfig.qml
View file @
01b527c0
...
@@ -76,5 +76,10 @@ QtObject {
...
@@ -76,5 +76,10 @@ QtObject {
foregroundColor
:
themeConfig
.
groove
.
foreground
,
foregroundColor
:
themeConfig
.
groove
.
foreground
,
backgroundColor
:
themeConfig
.
groove
.
background
,
backgroundColor
:
themeConfig
.
groove
.
background
,
})
})
property
var
textField
:
({
selectionColor
:
themeConfig
.
textField
.
selectionColor
,
selectedTextColor
:
themeConfig
.
textField
.
selectedTextColor
,
})
}
}
src/styles/themes/Theme1.js
View file @
01b527c0
...
@@ -50,3 +50,8 @@ var groove = {
...
@@ -50,3 +50,8 @@ var groove = {
background
:
fillColorDark
,
background
:
fillColorDark
,
}
}
// TEXTFIELD INPUT
var
textField
=
{
selectedTextColor
:
"
#ffffff
"
,
selectionColor
:
"
#0091e5
"
,
}
src/styles/themes/Theme2.js
View file @
01b527c0
...
@@ -50,3 +50,8 @@ var groove = {
...
@@ -50,3 +50,8 @@ var groove = {
background
:
fillColorDark
,
background
:
fillColorDark
,
}
}
// TEXTFIELD INPUT
var
textField
=
{
selectedTextColor
:
"
#ffffff
"
,
selectionColor
:
"
#0091e5
"
,
}
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