Merge branch 'main' of https://github.com/zhuzichu520/FluentUI
commit
0689c3b9d9
|
@ -1,6 +1,7 @@
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Layouts 1.15
|
||||||
import QtQuick.Controls 2.15
|
import QtQuick.Controls 2.15
|
||||||
|
import QtGraphicalEffects 1.15
|
||||||
|
|
||||||
Menu {
|
Menu {
|
||||||
id: popup
|
id: popup
|
||||||
|
@ -9,9 +10,18 @@ Menu {
|
||||||
width: 140
|
width: 140
|
||||||
height: container.height
|
height: container.height
|
||||||
|
|
||||||
background: Rectangle {
|
background: Item {
|
||||||
color:FluTheme.isDark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(237/255,237/255,237/255,1)
|
|
||||||
radius: 5
|
Rectangle{
|
||||||
|
anchors.fill: parent
|
||||||
|
color:FluTheme.isDark ? Qt.rgba(45/255,45/255,45/255,0.97) : Qt.rgba(237/255,237/255,237/255,0.97)
|
||||||
|
radius: 5
|
||||||
|
layer.enabled: true
|
||||||
|
layer.effect: GaussianBlur {
|
||||||
|
radius: 8
|
||||||
|
samples: 16
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FluShadow{
|
FluShadow{
|
||||||
radius: 5
|
radius: 5
|
||||||
|
|
|
@ -21,10 +21,17 @@ Item {
|
||||||
height: 32
|
height: 32
|
||||||
radius: 4
|
radius: 4
|
||||||
color:{
|
color:{
|
||||||
if(mouse_area.containsMouse){
|
if(FluTheme.isDark){
|
||||||
return FluTheme.isDark ? Qt.rgba(56/255,56/255,56/255,1) : Qt.rgba(230/255,230/255,230/255,1)
|
if(mouse_area.containsMouse){
|
||||||
|
return Qt.rgba(1,1,1,0.05)
|
||||||
|
}
|
||||||
|
return Qt.rgba(0,0,0,0)
|
||||||
|
}else{
|
||||||
|
if(mouse_area.containsMouse){
|
||||||
|
return Qt.rgba(0,0,0,0.05)
|
||||||
|
}
|
||||||
|
return Qt.rgba(0,0,0,0)
|
||||||
}
|
}
|
||||||
return FluTheme.isDark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(237/255,237/255,237/255,1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FluText{
|
FluText{
|
||||||
|
|
Loading…
Reference in New Issue