mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos.git
synced 2026-11-03 04:24:27 +00:00
31 lines
726 B
QML
31 lines
726 B
QML
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()
|
|
}
|
|
}
|