13 Star 39 Fork 6

zjzdy / Offline-small-search

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MTabButton.qml 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
zjzdy 提交于 2018-09-25 00:21 . Fix WebView Back Key bug.
import QtQuick 2.8
import QtQuick.Controls 2.4
import QtQuick.Controls.Material 2.3
TabButton {
id: control
padding: height/2
//spacing: 0
contentItem: Rectangle{
anchors.fill: control
color: "#00000000"
Text {
anchors.fill: parent
z: 4
text: control.text
font: control.font
elide: Text.ElideRight
//opacity: enabled ? 1 : 0.3
color: !control.enabled ? "#26282A" : control.down || control.checked ? "#03A9F4" : "#353637"//607D8B 26282a 353637
height: control.height
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
//color: !control.enabled ? control.Material.hintTextColor : control.down || control.checked ? control.Material.accentColor : control.Material.primaryTextColor
}
}
background: Rectangle {
//implicitHeight: 40
//color: control.down ? (control.checked ? "#e4e4e4" : "#585a5c") : (control.checked ? "transparent" : "#353637")
}
}
C++
1
https://gitee.com/zjzdy/Offline-small-search.git
git@gitee.com:zjzdy/Offline-small-search.git
zjzdy
Offline-small-search
Offline-small-search
master

搜索帮助