1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-31 21:22:58 +08:00

use radius

This commit is contained in:
jared 2020-07-08 20:12:52 +08:00
parent 7f713348d5
commit 962cef9346
3 changed files with 4 additions and 5 deletions

View File

@ -26,6 +26,7 @@ TImageBtn {
text: trans.trans(modelData) + trans.transString
color: trans.currentLang === modelData ? gConfig.themeColor :( containsMouse ? "lightgray" : pop.barColor)
textColor: gConfig.textColor
radius: 4
onClicked: {
// pop.hide()
trans.setCurrentLang(modelData)

View File

@ -13,6 +13,7 @@ TImageBtn {
barColor: gConfig.reserverColor
backgroundWidth: 280
backgroundHeight: 180
borderColor: gConfig.themeColor
contentItem: GridView {
anchors.fill: parent
anchors.margins: 10
@ -38,10 +39,7 @@ TImageBtn {
}
Text {
anchors {
left: parent.left
bottom: parent.bottom
leftMargin: 8
bottomMargin: 8
centerIn: parent
}
color: "white"
text: trans.trans(model.name) + trans.transString

View File

@ -135,7 +135,7 @@ bool TaoView::nativeEvent(const QByteArray& eventType, void* message, long* resu
}
double dpr = qApp->devicePixelRatio();
QPoint pos = mapFromGlobal(QPoint(x/dpr,y/dpr));
QRect titleRect(border_width, border_width, width() * 0.8, 40);
QRect titleRect(border_width, border_width, width() * 0.8, 50);
if (titleRect.contains(pos))
{
*result = HTCAPTION;