mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-01 23:51:48 +08:00
update
This commit is contained in:
@ -9,6 +9,7 @@ FluWindow {
|
||||
id:rootwindow
|
||||
width: 800
|
||||
height: 600
|
||||
title: "FluentUI"
|
||||
|
||||
FluAppBar{
|
||||
id:appbar
|
||||
@ -43,10 +44,23 @@ FluWindow {
|
||||
|
||||
Rectangle{
|
||||
color: {
|
||||
if(nav_list.currentIndex === index){
|
||||
return "#EAEAEB"
|
||||
if(FluApp.isDark){
|
||||
if(item_mouse.containsMouse){
|
||||
return "#292929"
|
||||
}
|
||||
if(nav_list.currentIndex === index){
|
||||
return "#2D2D2D"
|
||||
}
|
||||
return "#00000000"
|
||||
}else{
|
||||
if(item_mouse.containsMouse){
|
||||
return "#EDEDED"
|
||||
}
|
||||
if(nav_list.currentIndex === index){
|
||||
return "#EAEAEA"
|
||||
}
|
||||
return "#00000000"
|
||||
}
|
||||
return item_mouse.containsMouse? "#EAEAEA" : "#00000000"
|
||||
}
|
||||
radius: 4
|
||||
anchors{
|
||||
@ -70,9 +84,10 @@ FluWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Text{
|
||||
FluText{
|
||||
text:model.text
|
||||
anchors.centerIn: parent
|
||||
fontStyle: FluText.Caption
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ FluWindow {
|
||||
|
||||
width: 500
|
||||
height: 500
|
||||
title:"设置"
|
||||
|
||||
FluAppBar{
|
||||
id:appbar
|
||||
|
@ -17,8 +17,7 @@ Item {
|
||||
FluButton{
|
||||
Layout.topMargin: 20
|
||||
onClicked: {
|
||||
FluApp.getWIdByWindow(Window.window)
|
||||
// FluApp.navigate("/Setting")
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// qputenv("QSG_RENDER_LOOP","basic");
|
||||
qputenv("QSG_RENDER_LOOP","basic");
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
QGuiApplication app(argc, argv);
|
||||
QQmlApplicationEngine engine;
|
||||
|
Reference in New Issue
Block a user