Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libdap-qt-ui-qml
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
libdap-qt-ui-qml
Commits
5773f522
Commit
5773f522
authored
5 years ago
by
littletux89@gmail.com
Browse files
Options
Downloads
Patches
Plain Diff
[-] Button property defaults set.
parent
1f0a5e1d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
widgets/DapButtonForm.ui.qml
+51
-47
51 additions, 47 deletions
widgets/DapButtonForm.ui.qml
widgets/DapComboBoxForm.ui.qml
+4
-2
4 additions, 2 deletions
widgets/DapComboBoxForm.ui.qml
with
55 additions
and
49 deletions
widgets/DapButtonForm.ui.qml
+
51
−
47
View file @
5773f522
...
...
@@ -3,35 +3,35 @@ import QtQuick.Controls 2.0
Button
{
///@detalis heightButton Button height.
property
int
heightButton
:
36
*
pt
property
int
heightButton
///@detalis widthButton Button width.
property
int
widthButton
:
120
*
pt
property
int
widthButton
///@detalis normalImageButton The picture on the Button is in normal state.
property
string
normalImageButton
:
"
qrc:/res/icons/new-wallet_icon_dark.png
"
property
string
normalImageButton
///@detalis hoverImageButton The image on the Button is in the mouseover state.
property
string
hoverImageButton
:
"
qrc:/res/icons/new-wallet_icon_dark_hover.png
"
property
string
hoverImageButton
///@detalis widthImageButton Image width.
property
int
widthImageButton
:
28
*
pt
property
int
widthImageButton
///@detalis heightImageButton Image height.
property
int
heightImageButton
:
28
*
pt
property
int
heightImageButton
///@detalis indentImageLeftButton: Indentation of the image from the left edge.
property
int
indentImageLeftButton
:
10
*
pt
property
int
indentImageLeftButton
///@detalis colorBackgroundNormal Button background color in normal state.
property
string
colorBackgroundNormal
:
"
#070023
"
property
string
colorBackgroundNormal
///@detalis colorBackgroundHover Button background color in hover state.
property
string
colorBackgroundHover
:
"
#D51F5D
"
property
string
colorBackgroundHover
///@detalis textButton Text button.
property
string
textButton
:
"
New Wallet
"
property
string
textButton
///@detalis colorButtonTextNormal Button text color in normal state.
property
string
colorButtonTextNormal
:
"
#FFFFFF
"
property
string
colorButtonTextNormal
///@detalis colorButtonTextHover Button text color in hover state.
property
string
colorButtonTextHover
:
"
#FFFFFF
"
property
string
colorButtonTextHover
///@detalis indentTextRight: Indentation of the text from the right edge.
property
int
indentTextRight
:
20
*
pt
property
int
indentTextRight
///@detalis fontSizeButton Font size.
property
int
fontSizeButton
:
14
*
pt
property
int
fontSizeButton
///@detalis existenceImage Indicates the presence of an image.
property
bool
existenceImage
:
true
property
bool
existenceImage
:
true
///@detalis horizontalAligmentText Horizontal alignment.
property
alias
horizontalAligmentText
:
templateText
.
horizontalAlignment
///@detalis colorBackgroundButton This property overrides the background color.
...
...
@@ -39,43 +39,47 @@ Button {
///@detalis colorTextButton This property overrides the color of the text.
property
alias
colorTextButton
:
templateText
.
color
///@detalis borderColorButton Sets the color of the border.
property
string
borderColorButton
:
"
#000000
"
property
string
borderColorButton
///@detalis borderWidthButton Sets the width of the border.
property
int
borderWidthButton
:
0
property
int
borderWidthButton
id
:
dapButton
contentItem
:
Rectangle
{
id
:
dapBackgroundButton
anchors.fill
:
parent
color
:
dapButton
.
hovered
?
colorBackgroundHover
:
colorBackgroundNormal
implicitWidth
:
widthButton
implicitHeight
:
heightButton
border.color
:
borderColorButton
border.width
:
borderWidthButton
///button text
Text
{
id
:
templateText
contentItem
:
Rectangle
{
id
:
dapBackgroundButton
anchors.fill
:
parent
verticalAlignment
:
Qt
.
AlignVCenter
horizontalAlignment
:
Qt
.
AlignRight
anchors.rightMargin
:
indentTextRight
font.pixelSize
:
fontSizeButton
font.family
:
"
Roboto
"
font.weight
:
Font
.
Normal
color
:
dapButton
.
hovered
?
colorButtonTextHover
:
colorButtonTextNormal
text
:
qsTr
(
textButton
)
}
color
:
dapButton
.
hovered
?
colorBackgroundHover
:
colorBackgroundNormal
implicitWidth
:
widthButton
implicitHeight
:
heightButton
border.color
:
borderColorButton
border.width
:
borderWidthButton
///button text
Text
{
id
:
templateText
anchors.fill
:
parent
verticalAlignment
:
Qt
.
AlignVCenter
horizontalAlignment
:
Qt
.
AlignRight
anchors.rightMargin
:
indentTextRight
font.pixelSize
:
fontSizeButton
font.family
:
"
Roboto
"
font.weight
:
Font
.
Normal
color
:
dapButton
.
hovered
?
colorButtonTextHover
:
colorButtonTextNormal
text
:
qsTr
(
textButton
)
}
///button picture
Image
{
id
:
iconNewWallet
anchors.verticalCenter
:
if
(
existenceImage
)
parent
.
verticalCenter
anchors.left
:
if
(
existenceImage
)
parent
.
left
anchors.leftMargin
:
if
(
existenceImage
)
indentImageLeftButton
source
:
if
(
existenceImage
)
dapButton
.
hovered
?
hoverImageButton
:
normalImageButton
width
:
if
(
existenceImage
)
widthImageButton
height
:
if
(
existenceImage
)
heightImageButton
///button picture
Image
{
id
:
iconNewWallet
anchors.verticalCenter
:
if
(
existenceImage
)
parent
.
verticalCenter
anchors.left
:
if
(
existenceImage
)
parent
.
left
anchors.leftMargin
:
if
(
existenceImage
)
indentImageLeftButton
source
:
if
(
existenceImage
)
dapButton
.
hovered
?
hoverImageButton
:
normalImageButton
width
:
if
(
existenceImage
)
widthImageButton
height
:
if
(
existenceImage
)
heightImageButton
}
}
}
}
This diff is collapsed.
Click to expand it.
widgets/DapComboBoxForm.ui.qml
+
4
−
2
View file @
5773f522
...
...
@@ -115,10 +115,12 @@ ComboBox {
ScrollIndicator.vertical
:
ScrollIndicator
{}
}
background
:
Rectangle
{
background
:
Rectangle
{
width
:
customComboBox
.
background
.
width
color
:
parent
.
color
Rectangle
{
Rectangle
{
id
:
contentCorner
anchors.fill
:
parent
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment