Commit 64263400 authored by eetu's avatar eetu Committed by GitHub

Merge branch 'master' into master

parents 03c77737 bad236c9
/* /*
* Copyright (C) 2013 Andrea Bernabei <and.bernabei@gmail.com> * Copyright (C) 2013 Andrea Bernabei <and.bernabei@gmail.com>
* Copyright (C) 2017 Chupligin Sergey <neochapay@gmail.com>
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public * modify it under the terms of the GNU Library General Public
...@@ -18,7 +19,9 @@ ...@@ -18,7 +19,9 @@
*/ */
import QtQuick 2.6 import QtQuick 2.6
import QtQuick.Controls.Nemo 1.0
import QtQuick.Controls.Styles 1.0 import QtQuick.Controls.Styles 1.0
import QtQuick.Controls.Styles.Nemo 1.0
TabViewStyle { TabViewStyle {
tabsAlignment: Qt.AlignVCenter tabsAlignment: Qt.AlignVCenter
...@@ -31,10 +34,9 @@ TabViewStyle { ...@@ -31,10 +34,9 @@ TabViewStyle {
anchors.fill: parent anchors.fill: parent
border.bottom:Theme.itemSpacingExtraSmall border.bottom:Theme.itemSpacingExtraSmall
border.top: Theme.itemSpacingExtraSmall border.top: Theme.itemSpacingExtraSmall
source: styleData.selected ? "/usr/share/glacier-components/images/tab_selected.png":"/usr/share/glacier-components/images/tabs_standard.png"
Text { Text {
anchors.centerIn: parent anchors.centerIn: parent
color: Theme.textColor color: (styleData.selected) ? Theme.accentColor : Theme.textColor
text: styleData.title.toUpperCase() text: styleData.title.toUpperCase()
font.pixelSize: Theme.fontSizeTiny font.pixelSize: Theme.fontSizeTiny
} }
...@@ -43,9 +45,18 @@ TabViewStyle { ...@@ -43,9 +45,18 @@ TabViewStyle {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.margins: Theme.itemSpacingExtraSmall anchors.margins: Theme.itemSpacingExtraSmall
width:1 width: size.ratio(1)
color: Theme.fillDarkColor color: Theme.fillDarkColor
} }
Rectangle{
visible: styleData.selected
width: parent.width
height: size.ratio(1)
color: Theme.accentColor
anchors{
bottom: parent.bottom
}
}
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment