Advertisement
Guest User

Untitled

a guest
Feb 10th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
QML 0.95 KB | None | 0 0
  1. import QtQuick 2.8
  2. import QtQuick.Controls 2.1
  3. import Style 1.0
  4.  
  5. TabBar {
  6.     id: bar
  7.     anchors.left: parent.left
  8.     anchors.right: parent.right
  9.     height: 60
  10.     currentIndex: 1
  11.     background: Rectangle {
  12.         color: Style.darkGrey
  13.     }
  14.  
  15.     TabButton {
  16.         contentItem: BottomBarButton {
  17.             text: qsTr("Search")
  18.             icon: "/img/iconBarSearch.svg"
  19.         }
  20.     }
  21.  
  22.     TabButton {
  23.         contentItem: BottomBarButton {
  24.             text: qsTr("Home")
  25.             icon: "/img/iconBarHome.svg"
  26.         }
  27.     }
  28.  
  29.     TabButton {
  30.         background: Rectangle {
  31.             color: Style.darkGrey
  32.         }
  33.     }
  34.  
  35.     /* These last two don't respond to clicks */
  36.     TabButton {
  37.         background: Rectangle {
  38.             color: Style.darkGrey
  39.         }
  40.  
  41.         contentItem: BottomBarButton {
  42.             text: qsTr("Playlists")
  43.             icon: "/img/iconBarPlaylists.svg"
  44.         }
  45.     }
  46.  
  47.     TabButton {
  48.         background: Rectangle {
  49.             color: Style.darkGrey
  50.         }
  51.  
  52.         contentItem: BottomBarButton {
  53.             text: qsTr("My Collection")
  54.             icon: "/img/iconBarCollection.svg"
  55.         }
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement