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
Merge requests
!5
Feature 2798
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Feature 2798
feature-2798
into
master
Overview
0
Commits
18
Pipelines
0
Changes
3
Closed
konstantin.kukharenko
requested to merge
feature-2798
into
master
5 years ago
Overview
0
Commits
18
Pipelines
0
Changes
3
Expand
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9c76cd4f
18 commits,
5 years ago
3 files
+
105
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
DapButton.qml
0 → 100644
+
73
−
0
Options
import
QtQuick
2.0
import
QtQuick
.
Controls
2.0
///@heightButton and @widthButton - height and width button
///@normalImageButton and @hoverImageButton - mouseover image in normal state
///@widthImageButton and @heightImageButton - size image
///@indentImageLeftButton - Indentation of the image from the left edge
///@colorBackgroundNormal and @colorBackgroundHover - mouseover background color in normal state
///@textButton - text button
///@colorButtonTextNormal and @colorButtonTextHover - mouseover text color in normal state
///@indentTextRight - Indentation of the text from the right edge
///@fontSizeButton - font size
///@existenceImage - indicates a picture
///@horizontalAligmentText - horizontal alignment
Button
{
property
int
heightButton
:
36
*
pt
property
int
widthButton
:
120
*
pt
property
string
normalImageButton
:
"
qrc:/res/icons/new-wallet_icon_dark.png
"
property
string
hoverImageButton
:
"
qrc:/res/icons/new-wallet_icon_dark_hover.png
"
property
int
widthImageButton
:
28
*
pt
property
int
heightImageButton
:
28
*
pt
property
int
indentImageLeftButton
:
10
*
pt
property
string
colorBackgroundNormal
:
"
#070023
"
property
string
colorBackgroundHover
:
"
#D51F5D
"
property
string
textButton
:
"
New Wallet
"
property
string
colorButtonTextNormal
:
"
#FFFFFF
"
property
string
colorButtonTextHover
:
"
#FFFFFF
"
property
int
indentTextRight
:
20
*
pt
property
int
fontSizeButton
:
14
*
pt
property
bool
existenceImage
:
true
property
alias
horizontalAligmentText
:
templateText
.
horizontalAlignment
id
:
dapButton
contentItem
:
Rectangle
{
id
:
dapBackgroundButton
anchors.fill
:
parent
color
:
dapButton
.
hovered
?
colorBackgroundHover
:
colorBackgroundNormal
implicitWidth
:
widthButton
implicitHeight
:
heightButton
///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
}
}
}
Loading