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
5a1e772b
Commit
5a1e772b
authored
Oct 03, 2013
by
faenil
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from locusf/textinput
[textfield] Textfield styling
parents
e3e92d46
01b527c0
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 @
5a1e772b
...
...
@@ -83,6 +83,12 @@ Item {
readOnly
:
true
}
TextField
{
anchors.margins
:
20
text
:
"
Disabled textfield
"
enabled
:
false
}
TextField
{
anchors.margins
:
20
text
:
"
Text input
"
...
...
src/styles/TextFieldStyle.qml
View file @
5a1e772b
...
...
@@ -19,7 +19,32 @@
import
QtQuick
2.1
import
QtQuick
.
Controls
.
Styles
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
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 @
5a1e772b
...
...
@@ -21,5 +21,4 @@ import QtQuick 2.1
import
QtQuick
.
Controls
.
Styles
.
Private
1.0
ToolBarStyle
{
}
src/styles/images/disabled-overlay-inverse.png
0 → 100644
View file @
5a1e772b
281 Bytes
src/styles/private/ControlsStyleConfig.qml
View file @
5a1e772b
...
...
@@ -76,5 +76,10 @@ QtObject {
foregroundColor
:
themeConfig
.
groove
.
foreground
,
backgroundColor
:
themeConfig
.
groove
.
background
,
})
property
var
textField
:
({
selectionColor
:
themeConfig
.
textField
.
selectionColor
,
selectedTextColor
:
themeConfig
.
textField
.
selectedTextColor
,
})
}
src/styles/themes/Theme1.js
View file @
5a1e772b
...
...
@@ -50,3 +50,8 @@ var groove = {
background
:
fillColorDark
,
}
// TEXTFIELD INPUT
var
textField
=
{
selectedTextColor
:
"
#ffffff
"
,
selectionColor
:
"
#0091e5
"
,
}
src/styles/themes/Theme2.js
View file @
5a1e772b
...
...
@@ -50,3 +50,8 @@ var groove = {
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