neiam
/home-assistant-plasmoid
Home Assistant Plasmoid
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
some cleanup
0e50366 · gmorell · 2025-06-26 03:15
Files changed
modified
contents/ui/EntityControl.qml
+23
−10
@@ -58,7 +58,8 @@ Item {
| 58 | 58 | ColumnLayout { |
| 59 | 59 | visible: showExpandedControls |
| 60 | 60 | anchors.fill: parent |
| 61 | − spacing: Kirigami.Units.largeSpacing | |
| 61 | + anchors.margins: Kirigami.Units.largeSpacing | |
| 62 | + spacing: Kirigami.Units.largeSpacing * 1.5 | |
| 62 | 63 | |
| 63 | 64 | // Header with entity info |
| 64 | 65 | RowLayout { |
@@ -100,7 +101,7 @@ Item {
| 100 | 101 | ColumnLayout { |
| 101 | 102 | visible: hasAdvancedControls |
| 102 | 103 | Layout.fillWidth: true |
| 103 | − spacing: Kirigami.Units.smallSpacing | |
| 104 | + spacing: Kirigami.Units.largeSpacing | |
| 104 | 105 | |
| 105 | 106 | // Brightness Control |
| 106 | 107 | RowLayout { |
@@ -196,7 +197,7 @@ Item {
| 196 | 197 | ColumnLayout { |
| 197 | 198 | visible: supportsRgb && isOn |
| 198 | 199 | Layout.fillWidth: true |
| 199 | − spacing: Kirigami.Units.smallSpacing | |
| 200 | + spacing: Kirigami.Units.largeSpacing | |
| 200 | 201 | |
| 201 | 202 | PlasmaComponents3.Label { |
| 202 | 203 | text: "RGB Colors" |
@@ -207,8 +208,8 @@ Item {
| 207 | 208 | GridLayout { |
| 208 | 209 | Layout.fillWidth: true |
| 209 | 210 | columns: 7 |
| 210 | − columnSpacing: Kirigami.Units.smallSpacing | |
| 211 | − rowSpacing: Kirigami.Units.smallSpacing | |
| 211 | + columnSpacing: Kirigami.Units.largeSpacing | |
| 212 | + rowSpacing: Kirigami.Units.largeSpacing | |
| 212 | 213 | |
| 213 | 214 | Repeater { |
| 214 | 215 | model: [ |
@@ -276,8 +277,8 @@ Item {
| 276 | 277 | ColumnLayout { |
| 277 | 278 | id: entityInfoColumn |
| 278 | 279 | anchors.fill: parent |
| 279 | − anchors.margins: Kirigami.Units.largeSpacing | |
| 280 | − spacing: Kirigami.Units.smallSpacing | |
| 280 | + anchors.margins: Kirigami.Units.largeSpacing * 1.5 | |
| 281 | + spacing: Kirigami.Units.largeSpacing | |
| 281 | 282 | |
| 282 | 283 | PlasmaComponents3.Label { |
| 283 | 284 | text: "Entity Information" |
@@ -288,6 +289,7 @@ Item {
| 288 | 289 | // Entity ID |
| 289 | 290 | RowLayout { |
| 290 | 291 | Layout.fillWidth: true |
| 292 | + spacing: Kirigami.Units.largeSpacing | |
| 291 | 293 | PlasmaComponents3.Label { |
| 292 | 294 | text: "Entity ID:" |
| 293 | 295 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -307,6 +309,7 @@ Item {
| 307 | 309 | visible: entityState && entityState.attributes && entityState.attributes.friendly_name && |
| 308 | 310 | entityState.attributes.friendly_name !== displayName |
| 309 | 311 | Layout.fillWidth: true |
| 312 | + spacing: Kirigami.Units.largeSpacing | |
| 310 | 313 | PlasmaComponents3.Label { |
| 311 | 314 | text: "Friendly Name:" |
| 312 | 315 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -324,6 +327,7 @@ Item {
| 324 | 327 | // Current State |
| 325 | 328 | RowLayout { |
| 326 | 329 | Layout.fillWidth: true |
| 330 | + spacing: Kirigami.Units.largeSpacing | |
| 327 | 331 | PlasmaComponents3.Label { |
| 328 | 332 | text: "State:" |
| 329 | 333 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -342,6 +346,7 @@ Item {
| 342 | 346 | RowLayout { |
| 343 | 347 | visible: entityState && entityState.attributes && entityState.attributes.brightness !== undefined |
| 344 | 348 | Layout.fillWidth: true |
| 349 | + spacing: Kirigami.Units.largeSpacing | |
| 345 | 350 | PlasmaComponents3.Label { |
| 346 | 351 | text: "Brightness:" |
| 347 | 352 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -360,6 +365,7 @@ Item {
| 360 | 365 | RowLayout { |
| 361 | 366 | visible: entityState && entityState.attributes && entityState.attributes.rgb_color |
| 362 | 367 | Layout.fillWidth: true |
| 368 | + spacing: Kirigami.Units.largeSpacing | |
| 363 | 369 | PlasmaComponents3.Label { |
| 364 | 370 | text: "RGB Color:" |
| 365 | 371 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -378,6 +384,7 @@ Item {
| 378 | 384 | RowLayout { |
| 379 | 385 | visible: entityState && entityState.attributes && entityState.attributes.color_temp |
| 380 | 386 | Layout.fillWidth: true |
| 387 | + spacing: Kirigami.Units.largeSpacing | |
| 381 | 388 | PlasmaComponents3.Label { |
| 382 | 389 | text: "Color Temp:" |
| 383 | 390 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -396,6 +403,7 @@ Item {
| 396 | 403 | RowLayout { |
| 397 | 404 | visible: entityState && entityState.attributes && entityState.attributes.supported_color_modes && isLight |
| 398 | 405 | Layout.fillWidth: true |
| 406 | + spacing: Kirigami.Units.largeSpacing | |
| 399 | 407 | PlasmaComponents3.Label { |
| 400 | 408 | text: "Supported:" |
| 401 | 409 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -415,6 +423,7 @@ Item {
| 415 | 423 | RowLayout { |
| 416 | 424 | visible: entityState && entityState.attributes && entityState.attributes.temperature !== undefined |
| 417 | 425 | Layout.fillWidth: true |
| 426 | + spacing: Kirigami.Units.largeSpacing | |
| 418 | 427 | PlasmaComponents3.Label { |
| 419 | 428 | text: "Temperature:" |
| 420 | 429 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -433,6 +442,7 @@ Item {
| 433 | 442 | RowLayout { |
| 434 | 443 | visible: entityState && entityState.attributes && entityState.attributes.humidity !== undefined |
| 435 | 444 | Layout.fillWidth: true |
| 445 | + spacing: Kirigami.Units.largeSpacing | |
| 436 | 446 | PlasmaComponents3.Label { |
| 437 | 447 | text: "Humidity:" |
| 438 | 448 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -451,6 +461,7 @@ Item {
| 451 | 461 | RowLayout { |
| 452 | 462 | visible: entityState && entityState.attributes && entityState.attributes.battery_level !== undefined |
| 453 | 463 | Layout.fillWidth: true |
| 464 | + spacing: Kirigami.Units.largeSpacing | |
| 454 | 465 | PlasmaComponents3.Label { |
| 455 | 466 | text: "Battery:" |
| 456 | 467 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -478,6 +489,7 @@ Item {
| 478 | 489 | RowLayout { |
| 479 | 490 | visible: entityState && entityState.last_updated |
| 480 | 491 | Layout.fillWidth: true |
| 492 | + spacing: Kirigami.Units.largeSpacing | |
| 481 | 493 | PlasmaComponents3.Label { |
| 482 | 494 | text: "Last Updated:" |
| 483 | 495 | font.pointSize: Kirigami.Theme.smallFont.pointSize |
@@ -563,9 +575,9 @@ Item {
| 563 | 575 | } |
| 564 | 576 | } |
| 565 | 577 | |
| 566 | − PlasmaComponents3.ToolTip { | |
| 567 | − text: getTooltipText() | |
| 568 | − } | |
| 578 | + // PlasmaComponents3.ToolTip { | |
| 579 | + // text: getTooltipText() | |
| 580 | + // } | |
| 569 | 581 | |
| 570 | 582 | onClicked: handleControlClick() |
| 571 | 583 | } |
@@ -615,6 +627,7 @@ Item {
| 615 | 627 | } |
| 616 | 628 | |
| 617 | 629 | function getTooltipText() { |
| 630 | + return "" | |
| 618 | 631 | var tooltip = displayName |
| 619 | 632 | |
| 620 | 633 | if (isLoadingState) { |
modified
contents/ui/main.qml
+2
−2
@@ -19,8 +19,8 @@ PlasmoidItem {
| 19 | 19 | Kirigami.Units.gridUnit * 3 |
| 20 | 20 | Layout.preferredHeight: Kirigami.Units.iconSizes.smallMedium + Kirigami.Units.smallSpacing * 2 |
| 21 | 21 | |
| 22 | − switchWidth: Kirigami.Units.gridUnit * 10 | |
| 23 | − switchHeight: Kirigami.Units.gridUnit * 8 | |
| 22 | + switchWidth: Kirigami.Units.gridUnit * 20 | |
| 23 | + switchHeight: Kirigami.Units.gridUnit * 16 | |
| 24 | 24 | |
| 25 | 25 | Plasmoid.backgroundHints: PlasmaCore.Types.DefaultBackground | PlasmaCore.Types.ConfigurableBackground |
| 26 | 26 |
Parents: 5a949fd