Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
d5df2439
Commit
d5df2439
authored
Mar 07, 2021
by
Jean-Baptiste Mardelle
Browse files
Samll improvement in timeline ui scaling on low res monitors
parent
91751751
Pipeline
#53351
passed with stage
in 10 minutes and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/qml/Ruler.qml
View file @
d5df2439
...
...
@@ -31,6 +31,7 @@ Item {
property
int
workingPreview
:
timeline
.
workingPreview
property
int
labelMod
:
1
property
bool
useTimelineRuler
:
timeline
.
useRuler
property
int
zoneHeight
:
Math
.
ceil
(
root
.
baseUnit
/
2
)
property
bool
showZoneLabels
:
false
property
bool
resizeActive
:
false
// Used to decide which mouse cursor we should display
...
...
@@ -129,7 +130,7 @@ Item {
width
:
rulerRoot
.
width
height
:
1
anchors.bottom
:
parent
.
bottom
anchors.bottomMargin
:
root
.
baseUnit
/
2
anchors.bottomMargin
:
zoneHeight
color
:
activePalette
.
shadow
Rectangle
{
width
:
rulerRoot
.
width
...
...
@@ -153,7 +154,7 @@ Item {
color
:
useTimelineRuler
?
Qt
.
rgba
(
activePalette
.
highlight
.
r
,
activePalette
.
highlight
.
g
,
activePalette
.
highlight
.
b
,
0.9
)
:
Qt
.
rgba
(
activePalette
.
highlight
.
r
,
activePalette
.
highlight
.
g
,
activePalette
.
highlight
.
b
,
0.5
)
anchors.bottom
:
parent
.
bottom
height
:
root
.
baseUnit
/
2
height
:
zoneHeight
function
updateZone
(
start
,
end
,
update
)
{
timeline
.
updateZone
(
start
,
end
,
update
)
...
...
@@ -175,7 +176,7 @@ Item {
color
:
'
yellow
'
opacity
:
0.9
anchors.bottom
:
parent
.
bottom
height
:
root
.
baseUnit
/
2
height
:
zoneHeight
function
updateZone
(
start
,
end
,
update
)
{
timeline
.
updateEffectZone
(
start
,
end
,
update
)
...
...
src/timeline2/view/qml/timeline.qml
View file @
d5df2439
...
...
@@ -343,7 +343,7 @@ Rectangle {
}
property
int
activeTool
:
0
property
real
baseUnit
:
fontMetrics
.
font
.
pixelSize
property
real
baseUnit
:
Math
.
max
(
12
,
fontMetrics
.
font
.
pixelSize
)
property
real
fontUnit
:
fontMetrics
.
font
.
pointSize
property
int
collapsedHeight
:
Math
.
max
(
28
,
baseUnit
*
1.8
)
property
int
minHeaderWidth
:
6
*
collapsedHeight
...
...
Write
Preview
Supports
Markdown
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