mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
hide vertical tab buttons texts until the associated image is ready for the first time
This commit is contained in:
parent
54f99505d4
commit
a1b682e637
1 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,6 @@ Control.TabBar {
|
|||
Control.TabButton {
|
||||
id: tabButton
|
||||
width: mainItem.width
|
||||
height: visible && buttonIcon.isImageReady ? undefined : 0
|
||||
bottomInset: Utils.getSizeWithScreenRatio(32)
|
||||
topInset: Utils.getSizeWithScreenRatio(32)
|
||||
hoverEnabled: true
|
||||
|
|
@ -134,10 +133,12 @@ Control.TabBar {
|
|||
fillMode: Image.PreserveAspectFit
|
||||
colorizationColor: DefaultStyle.grey_0
|
||||
useColor: !modelData.colored
|
||||
onStatusChanged: if (status === Image.Ready && !buttonText.visible) buttonText.visible = true
|
||||
}
|
||||
Text {
|
||||
id: buttonText
|
||||
text: modelData.label
|
||||
visible: false
|
||||
font {
|
||||
weight: mainItem.currentIndex === index
|
||||
? Utils.getSizeWithScreenRatio(800)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue