Formatting
This commit is contained in:
parent
1d7d0752ad
commit
c0cfdff1d9
3 changed files with 109 additions and 104 deletions
|
|
@ -89,8 +89,6 @@ Row {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getDisplayText() {
|
function getDisplayText() {
|
||||||
// Check if Niri service is available
|
// Check if Niri service is available
|
||||||
if (typeof Niri === "undefined") {
|
if (typeof Niri === "undefined") {
|
||||||
|
|
@ -98,9 +96,8 @@ Row {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the focused window data
|
// Get the focused window data
|
||||||
const focusedWindow = Niri.focusedWindowIndex >= 0 && Niri.focusedWindowIndex < Niri.windows.length
|
const focusedWindow = Niri.focusedWindowIndex >= 0
|
||||||
? Niri.windows[Niri.focusedWindowIndex]
|
&& Niri.focusedWindowIndex < Niri.windows.length ? Niri.windows[Niri.focusedWindowIndex] : null
|
||||||
: null
|
|
||||||
|
|
||||||
if (!focusedWindow) {
|
if (!focusedWindow) {
|
||||||
return ""
|
return ""
|
||||||
|
|
|
||||||
|
|
@ -116,13 +116,13 @@ ColumnLayout {
|
||||||
} else {
|
} else {
|
||||||
// Default colors
|
// Default colors
|
||||||
colors = {
|
colors = {
|
||||||
mPrimary: "#000000",
|
"mPrimary": "#000000",
|
||||||
mSecondary: "#000000",
|
"mSecondary": "#000000",
|
||||||
mTertiary: "#000000",
|
"mTertiary": "#000000",
|
||||||
mError: "#ff0000",
|
"mError": "#ff0000",
|
||||||
mSurface: "#ffffff",
|
"mSurface": "#ffffff",
|
||||||
mOnSurface: "#000000",
|
"mOnSurface": "#000000",
|
||||||
mOutline: "#666666"
|
"mOutline": "#666666"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -322,15 +322,22 @@ ColumnLayout {
|
||||||
|
|
||||||
// Smooth animations
|
// Smooth animations
|
||||||
Behavior on scale {
|
Behavior on scale {
|
||||||
NumberAnimation { duration: 200; easing.type: Easing.OutCubic }
|
NumberAnimation {
|
||||||
|
duration: 200
|
||||||
|
easing.type: Easing.OutCubic
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on border.color {
|
Behavior on border.color {
|
||||||
ColorAnimation { duration: 300 }
|
ColorAnimation {
|
||||||
|
duration: 300
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on border.width {
|
Behavior on border.width {
|
||||||
NumberAnimation { duration: 200 }
|
NumberAnimation {
|
||||||
|
duration: 200
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ Singleton {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof Niri !== "undefined") {
|
if (typeof Niri !== "undefined") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue