mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Bar: improved "mini" density look
This commit is contained in:
@@ -14,9 +14,9 @@ Rectangle {
|
||||
property string icon: ""
|
||||
property string tooltipText: ""
|
||||
property string tooltipDirection: "auto"
|
||||
property string density: ""
|
||||
property bool enabled: true
|
||||
property bool allowClickWhenDisabled: false
|
||||
property bool compact: false
|
||||
property bool hot: false
|
||||
|
||||
// Internal properties
|
||||
@@ -81,7 +81,7 @@ Rectangle {
|
||||
// Icon
|
||||
NIcon {
|
||||
icon: root.icon
|
||||
pointSize: Math.max(1, root.compact ? root.width * 0.65 : root.width * 0.48)
|
||||
pointSize: Math.max(1, Math.round(root.width * 0.48))
|
||||
applyUiScale: root.applyUiScale
|
||||
color: {
|
||||
if (pressed) {
|
||||
|
||||
Reference in New Issue
Block a user