Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FSWidgets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FlexSensor-public
modules
FSWidgets
Commits
2039e75e
Commit
2039e75e
authored
1 year ago
by
Christoph Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Updated pushbutton. Added option to change the image path
parent
3aaa209b
Branches
Branches containing commit
Tags
0.0.2
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/lib/fswidgets/PlayPushButton.py
+6
-6
6 additions, 6 deletions
build/lib/fswidgets/PlayPushButton.py
with
6 additions
and
6 deletions
build/lib/fswidgets/PlayPushButton.py
+
6
−
6
View file @
2039e75e
...
@@ -19,7 +19,7 @@ class PlayPushButton(QPushButton):
...
@@ -19,7 +19,7 @@ class PlayPushButton(QPushButton):
self
.
setText
(
text
)
self
.
setText
(
text
)
def
_style_play
(
self
):
def
_style_play
(
self
,
img_path
=
'
/icons/icons/cil-media-play.png
'
):
return
"""
return
"""
QPushButton {
QPushButton {
background-color: rgb(36, 209, 21);
background-color: rgb(36, 209, 21);
...
@@ -30,7 +30,7 @@ class PlayPushButton(QPushButton):
...
@@ -30,7 +30,7 @@ class PlayPushButton(QPushButton):
border-left: 22px solid transparent;
border-left: 22px solid transparent;
text-align: left;
text-align: left;
padding-left: 44px;
padding-left: 44px;
background-image: url(:
/icons/images/icons/cil-media-play.png
);
background-image: url(:
"""
+
img_path
+
"""
);
}
}
QPushButton:hover {
QPushButton:hover {
...
@@ -49,7 +49,7 @@ class PlayPushButton(QPushButton):
...
@@ -49,7 +49,7 @@ class PlayPushButton(QPushButton):
"""
"""
def
_style_pause
(
self
):
def
_style_pause
(
self
m
,
img_path
=
"
/icons/icons/cil-media-pause.png
"
):
return
"""
return
"""
QPushButton {
QPushButton {
background-color: rgb(255, 200,11);
background-color: rgb(255, 200,11);
...
@@ -60,7 +60,7 @@ class PlayPushButton(QPushButton):
...
@@ -60,7 +60,7 @@ class PlayPushButton(QPushButton):
border-left: 22px solid transparent;
border-left: 22px solid transparent;
text-align: left;
text-align: left;
padding-left: 44px;
padding-left: 44px;
background-image: url(:
/icons/images/icons/cil-media-pause.png
)
background-image: url(:
"""
+
img_path
+
"""
)
}
}
QPushButton:hover {
QPushButton:hover {
...
@@ -78,7 +78,7 @@ class PlayPushButton(QPushButton):
...
@@ -78,7 +78,7 @@ class PlayPushButton(QPushButton):
}
}
"""
"""
def
_style_stop
(
self
):
def
_style_stop
(
self
,
img_path
=
"
/icons/icons/cil-media-stop.png
"
):
return
"""
return
"""
QPushButton {
QPushButton {
background-color: rgb(242, 41, 41);
background-color: rgb(242, 41, 41);
...
@@ -89,7 +89,7 @@ class PlayPushButton(QPushButton):
...
@@ -89,7 +89,7 @@ class PlayPushButton(QPushButton):
border-left: 22px solid transparent;
border-left: 22px solid transparent;
text-align: left;
text-align: left;
padding-left: 44px;
padding-left: 44px;
background-image: url(:
/icons/images/icons/cil-media-stop.png
)
background-image: url(:
"""
+
img_path
+
"""
)
}
}
QPushButton:hover {
QPushButton:hover {
...
...
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