diff options
Diffstat (limited to 'Button/NavLink.ui.qml')
-rw-r--r-- | Button/NavLink.ui.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Button/NavLink.ui.qml b/Button/NavLink.ui.qml new file mode 100644 index 0000000..45bffe3 --- /dev/null +++ b/Button/NavLink.ui.qml @@ -0,0 +1,21 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 +import Bootstrap 5.3 + +Btn { + id: button + font: Bootstrap.bodyFont + contentItem: Text { + text: modelData + font: button.font + color: checked + ? Bootstrap.navPillsLinkActiveColor : Bootstrap.primary + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + } + background: Rectangle { + color: checked + ? Bootstrap.navPillsLinkActiveBg : Bootstrap.btnBg + radius: Bootstrap.navPillsBorderRadius + } +} |