Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
451
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
0b67987f
Commit
0b67987f
authored
3 years ago
by
Benjamin Arnaud
Committed by
Jean-Baptiste Kempf
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qml/TeletextWidget: Update to IconControlButton(s) and fix colors
parent
0efc5999
No related branches found
No related tags found
1 merge request
!1505
qml/TeletextWidget: Update to IconControlButton(s) and fix colors
Pipeline
#197641
passed with stage
in 1 hour, 3 minutes, and 12 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/gui/qt/player/qml/controlbarcontrols/TeletextWidget.qml
+80
-24
80 additions, 24 deletions
...s/gui/qt/player/qml/controlbarcontrols/TeletextWidget.qml
with
80 additions
and
24 deletions
modules/gui/qt/player/qml/controlbarcontrols/TeletextWidget.qml
+
80
−
24
View file @
0b67987f
...
...
@@ -46,36 +46,53 @@ T.Pane {
id
:
teleWidget
anchors.fill
:
parent
Widgets.Icon
To
olButton
{
Widgets.Icon
Contr
olButton
{
id
:
teleActivateBtn
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
checked
:
Player
.
teletextEnabled
focus
:
true
iconText
:
VLCIcons
.
tv
text
:
I18n
.
qtr
(
"
Teletext activate
"
)
size
:
VLCStyle
.
icon_normal
onClicked
:
Player
.
teletextEnabled
=
!
Player
.
teletextEnabled
colors
:
root
.
colors
color
:
colors
.
text
checked
:
Player
.
teletextEnabled
focus
:
true
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.rightItem
:
teleTransparencyBtn
onClicked
:
Player
.
teletextEnabled
=
!
Player
.
teletextEnabled
}
Widgets.Icon
To
olButton
{
Widgets.Icon
Contr
olButton
{
id
:
teleTransparencyBtn
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
opacity
:
0.5
iconText
:
VLCIcons
.
tvtelx
text
:
I18n
.
qtr
(
"
Teletext transparency
"
)
size
:
VLCStyle
.
icon_normal
opacity
:
0.5
onClicked
:
Player
.
teletextTransparency
=
!
Player
.
teletextTransparency
colors
:
root
.
colors
color
:
colors
.
text
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
teleActivateBtn
Navigation.rightItem
:
telePageNumber
onClicked
:
Player
.
teletextTransparency
=
!
Player
.
teletextTransparency
}
Widgets.SpinBoxExt
{
...
...
@@ -114,79 +131,118 @@ T.Pane {
}
}
Widgets.Icon
To
olButton
{
Widgets.Icon
Contr
olButton
{
id
:
indexKeyBtn
paintOnly
:
root
.
paintOnly
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
iconText
:
VLCIcons
.
record
text
:
I18n
.
qtr
(
"
Index key
"
)
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_INDEX
colors
:
root
.
colors
color
:
"
grey
"
colorDisabled
:
"
grey
"
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
telePageNumber
Navigation.rightItem
:
redKeyBtn
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_INDEX
}
Widgets.IconToolButton
{
Widgets.IconControlButton
{
id
:
redKeyBtn
paintOnly
:
root
.
paintOnly
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
iconText
:
VLCIcons
.
record
text
:
I18n
.
qtr
(
"
Red key
"
)
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_RED
colors
:
root
.
colors
color
:
"
red
"
colorDisabled
:
"
grey
"
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
indexKeyBtn
Navigation.rightItem
:
greenKeyBtn
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_RED
}
Widgets.IconToolButton
{
Widgets.IconControlButton
{
id
:
greenKeyBtn
paintOnly
:
root
.
paintOnly
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
iconText
:
VLCIcons
.
record
text
:
I18n
.
qtr
(
"
Green key
"
)
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_GREEN
colors
:
root
.
colors
color
:
"
green
"
colorDisabled
:
"
grey
"
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
redKeyBtn
Navigation.rightItem
:
yellowKeyBtn
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_GREEN
}
Widgets.IconToolButton
{
Widgets.IconControlButton
{
id
:
yellowKeyBtn
paintOnly
:
root
.
paintOnly
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
iconText
:
VLCIcons
.
record
text
:
I18n
.
qtr
(
"
Yellow key
"
)
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_YELLOW
colors
:
root
.
colors
color
:
"
yellow
"
colorDisabled
:
"
grey
"
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
greenKeyBtn
Navigation.rightItem
:
blueKeyBtn
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_YELLOW
}
Widgets.IconToolButton
{
Widgets.IconControlButton
{
id
:
blueKeyBtn
paintOnly
:
root
.
paintOnly
size
:
VLCStyle
.
icon_normal
paintOnly
:
root
.
paintOnly
iconText
:
VLCIcons
.
record
text
:
I18n
.
qtr
(
"
Blue key
"
)
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_BLUE
colors
:
root
.
colors
color
:
"
blue
"
colorDisabled
:
"
grey
"
toolTip.visible
:
hovered
||
visualFocus
Navigation.parentItem
:
root
Navigation.leftItem
:
yellowKeyBtn
onClicked
:
Player
.
teletextPage
=
Player
.
TELE_BLUE
}
}
}
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