mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 11:08:55 +00:00
refactor(Browser/FavoritesBar): use StatusQ StatusModal and StatusButton
This commit is contained in:
parent
48bb73be3a
commit
ecec858594
@ -1,10 +1,10 @@
|
|||||||
import QtQuick 2.13
|
import QtQuick 2.13
|
||||||
import QtQuick.Layouts 1.13
|
import QtQuick.Layouts 1.13
|
||||||
import "../../../../shared"
|
|
||||||
import "../../../../shared/status"
|
|
||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
|
||||||
|
import StatusQ.Controls 0.1
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: favoritesBar
|
id: favoritesBar
|
||||||
|
|
||||||
@ -22,16 +22,13 @@ RowLayout {
|
|||||||
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
||||||
width: parent.width
|
width: parent.width
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
delegate: StatusButton {
|
delegate: StatusFlatButton {
|
||||||
id: favoriteBtn
|
id: favoriteBtn
|
||||||
height: 32
|
height: 32
|
||||||
icon.source: imageUrl
|
icon.source: imageUrl
|
||||||
disableColorOverlay: true
|
|
||||||
icon.width: 24
|
icon.width: 24
|
||||||
icon.height: 24
|
icon.height: 24
|
||||||
text: name
|
text: name
|
||||||
implicitHeight: 32
|
|
||||||
type: "secondary"
|
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
Loading…
x
Reference in New Issue
Block a user