added two new themes, reworked Crypto.qml and Stats.qml, standardized the buttons for the modules, added a new Sidebar widget which contains new 3 modules
This commit is contained in:
31
widgets/sidebar/WidgetCard.qml
Normal file
31
widgets/sidebar/WidgetCard.qml
Normal file
@@ -0,0 +1,31 @@
|
||||
import QtQuick
|
||||
import "../../config" as Cfg
|
||||
|
||||
Rectangle {
|
||||
id: card
|
||||
|
||||
anchors { left: parent.left; right: parent.right }
|
||||
|
||||
implicitHeight: contentArea.childrenRect.height + 28
|
||||
|
||||
radius: Cfg.Config.popupRadius
|
||||
color: Cfg.Config.theme.bgPopup
|
||||
border.color: Qt.alpha(Cfg.Config.theme.accent, 0.18)
|
||||
border.width: 1
|
||||
clip: true
|
||||
|
||||
default property alias content: contentArea.data
|
||||
|
||||
Item {
|
||||
id: contentArea
|
||||
anchors {
|
||||
top: parent.top
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
topMargin: 14
|
||||
leftMargin: 14
|
||||
rightMargin: 14
|
||||
}
|
||||
height: childrenRect.height
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user