Update FishUI

pull/3/head
cutefishd 4 years ago
parent 493cc0951e
commit 748ce1a88c

@ -11,7 +11,7 @@ kwin4_effect_translucencyEnabled=false
magiclampEnabled=false magiclampEnabled=false
[Effect-Blur] [Effect-Blur]
BlurStrength=5 BlurStrength=10
NoiseStrength=0 NoiseStrength=0
[Windows] [Windows]

@ -8,7 +8,7 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
import org.kde.kquickcontrolsaddons 2.0 import org.kde.kquickcontrolsaddons 2.0
import org.kde.kwin 2.0 as KWin import org.kde.kwin 2.0 as KWin
import MeuiKit 1.0 as Meui import FishUI 1.0 as FishUI
// https://techbase.kde.org/Development/Tutorials/KWin/WindowSwitcher // https://techbase.kde.org/Development/Tutorials/KWin/WindowSwitcher
KWin.Switcher { KWin.Switcher {
@ -35,34 +35,34 @@ KWin.Switcher {
x: (tabBox.screenGeometry.width - dialog.width) / 2 x: (tabBox.screenGeometry.width - dialog.width) / 2
y: (tabBox.screenGeometry.height - dialog.height) / 2 y: (tabBox.screenGeometry.height - dialog.height) / 2
Meui.WindowBlur { FishUI.WindowBlur {
view: dialog view: dialog
geometry: Qt.rect(dialog.x, dialog.y, dialog.width, dialog.height) geometry: Qt.rect(dialog.x, dialog.y, dialog.width, dialog.height)
windowRadius: _background.radius windowRadius: _background.radius
enabled: true enabled: true
} }
Meui.WindowShadow { FishUI.WindowShadow {
view: dialog view: dialog
geometry: Qt.rect(dialog.x, dialog.y, dialog.width, dialog.height) geometry: Qt.rect(dialog.x, dialog.y, dialog.width, dialog.height)
radius: _background.radius radius: _background.radius
} }
Meui.RoundedRect { FishUI.RoundedRect {
id: _background id: _background
anchors.fill: parent anchors.fill: parent
radius: _background.height * 0.1 radius: _background.height * 0.1
color: Meui.Theme.backgroundColor color: FishUI.Theme.backgroundColor
backgroundOpacity: Meui.Theme.darkMode ? 0.3 : 0.4 backgroundOpacity: FishUI.Theme.darkMode ? 0.3 : 0.4
} }
// Rectangle { // Rectangle {
// id: _background // id: _background
// anchors.fill: parent // anchors.fill: parent
// radius: _background.height * 0.1 // radius: _background.height * 0.1
// color: Meui.Theme.backgroundColor // color: FishUI.Theme.backgroundColor
// border.width: 1 // border.width: 1
// border.color: Meui.Theme.disabledTextColor // border.color: FishUI.Theme.disabledTextColor
// opacity: 0.5 // opacity: 0.5
// } // }
@ -201,7 +201,7 @@ KWin.Switcher {
Layout.fillWidth: true Layout.fillWidth: true
elide: Text.ElideRight elide: Text.ElideRight
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
color: isCurrent ? Meui.Theme.highlightedTextColor : Meui.Theme.textColor color: isCurrent ? FishUI.Theme.highlightedTextColor : FishUI.Theme.textColor
} }
} }
} // GridView.delegate } // GridView.delegate
@ -212,8 +212,8 @@ KWin.Switcher {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.margins: _background.radius / 2 anchors.margins: _background.radius / 2
radius: Meui.Theme.bigRadius radius: FishUI.Theme.bigRadius
color: Meui.Theme.highlightColor color: FishUI.Theme.highlightColor
} }
} }

Loading…
Cancel
Save