Warning, /maui/mauikit/examples/Badge.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 0002 import QtQuick.Controls 0003 import QtQuick.Layouts 0004 import org.mauikit.controls as Maui 0005 0006 Maui.ApplicationWindow 0007 { 0008 id: root 0009 0010 Maui.AppViews 0011 { 0012 id: _page 0013 anchors.fill: parent 0014 Maui.Controls.showCSD: true 0015 headBar.forceCenterMiddleContent: true 0016 0017 Maui.AppViewLoader 0018 { 0019 Maui.AppView.title: "View1" 0020 Maui.AppView.iconName: "love" 0021 0022 Pane 0023 { 0024 0025 Column 0026 { 0027 anchors.centerIn: parent 0028 0029 spacing: Maui.Style.space.big 0030 Button 0031 { 0032 text: "Example1" 0033 0034 Maui.Badge 0035 { 0036 icon.name: "actor" 0037 color: Maui.Theme.neutralBackgroundColor 0038 anchors.horizontalCenter: parent.right 0039 anchors.verticalCenter: parent.top 0040 } 0041 } 0042 0043 Button 0044 { 0045 text: "Example2" 0046 0047 Maui.Badge 0048 { 0049 text: "@" 0050 anchors.horizontalCenter: parent.right 0051 anchors.verticalCenter: parent.top 0052 } 0053 } 0054 0055 Button 0056 { 0057 text: "Example3" 0058 0059 Maui.Badge 0060 { 0061 icon.name:"anchor" 0062 size: Maui.Style.iconSizes.medium 0063 color: Maui.Theme.positiveBackgroundColor 0064 anchors.horizontalCenter: parent.right 0065 anchors.verticalCenter: parent.top 0066 } 0067 } 0068 0069 Maui.Badge 0070 { 0071 text: "+200" 0072 } 0073 } 0074 0075 0076 } 0077 } 0078 0079 Maui.AppViewLoader 0080 { 0081 Maui.AppView.title: "View2" 0082 Maui.AppView.iconName: "folder" 0083 Maui.AppView.badgeText: "30" 0084 0085 Rectangle 0086 { 0087 color: "pink" 0088 } 0089 } 0090 0091 Maui.AppViewLoader 0092 { 0093 Maui.AppView.title: "View3" 0094 Maui.AppView.iconName: "tag" 0095 0096 Rectangle 0097 { 0098 color: "green" 0099 } 0100 } 0101 } 0102 }