Commit ebd9af81 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Adjust monitor toolbar icon size

parent e59e084c
Pipeline #80442 canceled with stage
......@@ -7,7 +7,7 @@ MouseArea {
property bool rightSide: true
property bool showAutoKeyframe: true
acceptedButtons: Qt.NoButton
width: fullscreenButton.width + root.baseUnit
width: 2.4 * fontMetrics.font.pixelSize
height: parent.height
onEntered: {
animator.stop()
......@@ -20,7 +20,7 @@ MouseArea {
Rectangle {
id: effecttoolbar
objectName: "effecttoolbar"
width: fullscreenButton.width
width: barZone.width
anchors.right: barZone.right
anchors.verticalCenter: parent.verticalCenter
height: childrenRect.height
......@@ -51,9 +51,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/view-fullscreen"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -66,9 +70,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/view-grid"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocusv
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -88,9 +96,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/keyframe-next"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -103,9 +115,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/keyframe-previous"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -118,9 +134,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/keyframe-add"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -132,9 +152,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/keyframe-record"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
ToolTip.visible: hovered
focusPolicy: Qt.NoFocus
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -149,9 +173,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-in"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -163,9 +191,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-out"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -178,9 +210,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/transform-move-horizontal"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......
......@@ -7,7 +7,7 @@ MouseArea {
hoverEnabled: true
property bool rightSide: true
acceptedButtons: Qt.NoButton
width: fullscreenButton.width + root.baseUnit
width: 2.4 * fontMetrics.font.pixelSize
height: parent.height
onEntered: {
animator.stop()
......@@ -20,7 +20,7 @@ MouseArea {
Rectangle {
id: scenetoolbar
objectName: "scenetoolbar"
width: fullscreenButton.width
width: barZone.width
height: childrenRect.height
anchors.right: barZone.right
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
......@@ -52,9 +52,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/view-fullscreen"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -69,9 +73,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-in"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -86,9 +94,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-out"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
ToolTip.visible: hovered
focusPolicy: Qt.NoFocus
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -104,9 +116,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/transform-move-horizontal"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......
......@@ -7,7 +7,7 @@ MouseArea {
hoverEnabled: true
property bool rightSide: true
acceptedButtons: Qt.NoButton
width: fullscreenButton.width + root.baseUnit
width: 2.4 * fontMetrics.font.pixelSize
height: parent.height
onEntered: {
animator.stop()
......@@ -20,7 +20,7 @@ MouseArea {
Rectangle {
id: scenetoolbar
objectName: "scenetoolbar"
width: fullscreenButton.width
width: barZone.width
height: childrenRect.height
anchors.right: barZone.right
SystemPalette { id: myPalette; colorGroup: SystemPalette.Active }
......@@ -43,8 +43,6 @@ MouseArea {
animator.start()
}
Column {
ToolButton {
id: fullscreenButton
......@@ -52,9 +50,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/view-fullscreen"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 4
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -70,9 +72,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/view-grid"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -91,9 +97,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-in"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -108,9 +118,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/zoom-out"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -126,9 +140,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/list-add"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -144,9 +162,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/list-remove"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......@@ -162,9 +184,13 @@ MouseArea {
contentItem: Item {
Image {
source: "image://icon/transform-move-horizontal"
anchors.fill: parent
anchors.centerIn: parent
width: barZone.width - 6
height: width
}
}
width: barZone.width
height: barZone.width
focusPolicy: Qt.NoFocus
ToolTip.visible: hovered
ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
......
......@@ -38,7 +38,7 @@ Item {
property bool permanentAudiothumb: false
property bool showToolbar: false
property string clipName: controller.clipName
property real baseUnit: fontMetrics.font.pixelSize
property real baseUnit: fontMetrics.font.pixelSize * 0.8
property int duration: 300
property int mouseRulerPos: 0
property double frameSize: 10
......
......@@ -239,7 +239,7 @@ Rectangle {
source: trackHeadRoot.collapsed ? "image://icon/go-next" : "image://icon/go-down"
anchors.centerIn: parent
width: root.collapsedHeight - 4
height: root.collapsedHeight - 4
height: width
cache: root.paletteUnchanged
}
}
......@@ -390,7 +390,7 @@ Rectangle {
source: "image://icon/tools-wizard"
anchors.centerIn: parent
width: root.collapsedHeight - 4
height: root.collapsedHeight - 4
height: width
cache: root.paletteUnchanged
opacity: effectButton.enabled ? 1 : 0.5
}
......@@ -427,7 +427,7 @@ Rectangle {
source: isAudio ? (isDisabled ? "image://icon/kdenlive-hide-audio" : "image://icon/kdenlive-show-audio") : (isDisabled ? "image://icon/kdenlive-hide-video" : "image://icon/kdenlive-show-video")
anchors.centerIn: parent
width: root.collapsedHeight - 4
height: root.collapsedHeight - 4
height: width
cache: root.paletteUnchanged
}
}
......@@ -460,7 +460,7 @@ Rectangle {
source: trackHeadRoot.isLocked ? "image://icon/kdenlive-lock" : "image://icon/kdenlive-unlock"
anchors.centerIn: parent
width: root.collapsedHeight - 4
height: root.collapsedHeight - 4
height: width
cache: root.paletteUnchanged
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment