Skip to content
Snippets Groups Projects
Commit 4ee2ff06 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

[Android] Alternate TipRect there

Use border image instead shadow effect - due to animations
parent bbb4337b
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
<file alias="InstrumentSelector.qml">qml/shared/InstrumentSelector.qml</file>
<file alias="RhythmSelector.qml">qml/shared/RhythmSelector.qml</file>
<file alias="TipRect.qml">qml/shared/TipRect.qml</file>
<file alias="+android/TipRect.qml">qml/+android/shared/TipRect.qml</file>
<file alias="TcheckBox.qml">qml/shared/TcheckBox.qml</file>
<file alias="TradioButton.qml">qml/shared/TradioButton.qml</file>
<file alias="Transposition.qml">qml/shared/Transposition.qml</file>
......
/** This file is part of Nootka (http://nootka.sf.net) *
* Copyright (C) 2017-2018 by Tomasz Bojczuk (seelook@gmail.com) *
* on the terms of GNU GPLv3 license (http://www.gnu.org/licenses) */
import QtQuick 2.9
import QtGraphicalEffects 1.0
Item {
property alias color: bg.color
property alias radius: bg.radius
property bool rised: true
property real shadowRadius: 0
property color shadowColor: "transparent"
property alias border: bg.border
property int horizontalOffset: 0
property int verticalOffset: 0
BorderImage {
x: -6; y: -6; width: parent.width + 12; height: parent.height + 12
border { left: 12; right: 12; bottom: 12; top: 12 }
horizontalTileMode: BorderImage.Stretch
verticalTileMode: BorderImage.Stretch
source: Noo.pix("tipbg")
Rectangle {
id: bg
x: 6; y: 6; width: parent.width - 12; height: parent.height - 12
color: activPal.base
radius: 6
clip: true
}
}
}
......@@ -50,8 +50,9 @@ ControlBase {
TipRect {
x: activeItem ? -activeItem.width * score.scale - width * 1.3: 0
width: childrenRect.width; height: childrenRect.height
width: controlButt.width; height: controlButt.height
ControlButton {
id: controlButt
factor: delControl.factor
font { family: "Nootka"; pixelSize: factor * 3 }
text: "n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment