mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
nixos config
This commit is contained in:
commit
5dc9fb020e
46 changed files with 6194 additions and 0 deletions
31
dotfiles/quickshell/CloseButton.qml
Normal file
31
dotfiles/quickshell/CloseButton.qml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import QtQuick
|
||||
|
||||
// Small close button using a plain "x" glyph, not a nerd-font icon — the
|
||||
// left-bar icons taught us those can silently fail to render.
|
||||
Rectangle {
|
||||
id: root
|
||||
signal clicked()
|
||||
|
||||
width: 24
|
||||
height: 24
|
||||
color: mouseArea.containsMouse ? Theme.borderDim : "transparent"
|
||||
border.width: 1
|
||||
border.color: Theme.border
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: "x"
|
||||
color: Theme.fgDim2
|
||||
font.family: "JetBrainsMono Nerd Font"
|
||||
font.pixelSize: 12
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue