mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
82be3b12e3
commit
9786e69fc2
@ -105,10 +105,3 @@ install(TARGETS example
|
|||||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
qt_generate_deploy_app_script(
|
|
||||||
TARGET example
|
|
||||||
OUTPUT_SCRIPT deploy_script
|
|
||||||
NO_UNSUPPORTED_PLATFORM_ERROR
|
|
||||||
)
|
|
||||||
install(SCRIPT ${deploy_script})
|
|
||||||
|
@ -62,9 +62,9 @@ qt_add_qml_module(fluentuiplugin
|
|||||||
|
|
||||||
#链接库
|
#链接库
|
||||||
target_link_libraries(fluentuiplugin PUBLIC
|
target_link_libraries(fluentuiplugin PUBLIC
|
||||||
Qt::Core
|
Qt::CorePrivate
|
||||||
Qt::Quick
|
Qt::QuickPrivate
|
||||||
Qt::Qml
|
Qt::QmlPrivate
|
||||||
)
|
)
|
||||||
|
|
||||||
#安装
|
#安装
|
||||||
|
@ -42,27 +42,31 @@ T.Slider {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
background: Item {
|
||||||
|
x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
|
||||||
|
y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
|
||||||
|
implicitWidth: control.horizontal ? 180 : 6
|
||||||
|
implicitHeight: control.horizontal ? 6 : 180
|
||||||
|
width: control.horizontal ? control.availableWidth : implicitWidth
|
||||||
|
height: control.horizontal ? implicitHeight : control.availableHeight
|
||||||
|
Rectangle{
|
||||||
|
anchors.fill: parent
|
||||||
|
anchors.margins: 1
|
||||||
|
radius: 2
|
||||||
|
color:FluTheme.dark ? Qt.rgba(162/255,162/255,162/255,1) : Qt.rgba(138/255,138/255,138/255,1)
|
||||||
|
}
|
||||||
|
scale: control.horizontal && control.mirrored ? -1 : 1
|
||||||
|
Rectangle {
|
||||||
|
y: control.horizontal ? 0 : control.visualPosition * parent.height
|
||||||
|
width: control.horizontal ? control.position * parent.width : 6
|
||||||
|
height: control.horizontal ? 6 : control.position * parent.height
|
||||||
|
radius: 3
|
||||||
|
color:FluTheme.dark ? FluTheme.primaryColor.lighter :FluTheme.primaryColor.dark
|
||||||
|
}
|
||||||
|
}
|
||||||
FluTooltip{
|
FluTooltip{
|
||||||
parent: control.handle
|
parent: control.handle
|
||||||
visible: control.tooltipEnabled && control.pressed
|
visible: control.tooltipEnabled && control.pressed
|
||||||
text:String(control.value)
|
text:String(control.value)
|
||||||
}
|
}
|
||||||
background: Rectangle {
|
|
||||||
x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
|
|
||||||
y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
|
|
||||||
implicitWidth: control.horizontal ? 180 : 4
|
|
||||||
implicitHeight: control.horizontal ? 4 : 180
|
|
||||||
width: control.horizontal ? control.availableWidth : implicitWidth
|
|
||||||
height: control.horizontal ? implicitHeight : control.availableHeight
|
|
||||||
radius: 3
|
|
||||||
color:FluTheme.dark ? Qt.rgba(162/255,162/255,162/255,1) : Qt.rgba(138/255,138/255,138/255,1)
|
|
||||||
scale: control.horizontal && control.mirrored ? -1 : 1
|
|
||||||
Rectangle {
|
|
||||||
y: control.horizontal ? 0 : control.visualPosition * parent.height
|
|
||||||
width: control.horizontal ? control.position * parent.width : 4
|
|
||||||
height: control.horizontal ? 4 : control.position * parent.height
|
|
||||||
radius: 2
|
|
||||||
color:FluTheme.dark ? FluTheme.primaryColor.lighter :FluTheme.primaryColor.dark
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user