mirror of
https://github.com/jaredtao/TaoQuick.git
synced 2025-01-31 21:22:58 +08:00
use radius
This commit is contained in:
parent
7f713348d5
commit
962cef9346
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user