Changeset View
Changeset View
Standalone View
Standalone View
applets/pager/package/contents/ui/main.qml
Show First 20 Lines • Show All 424 Lines • ▼ Show 20 Line(s) | 418 | Rectangle { | |||
---|---|---|---|---|---|
425 | property string visibleName: model.display | 425 | property string visibleName: model.display | ||
426 | property bool minimized: (model.IsMinimized === true) | 426 | property bool minimized: (model.IsMinimized === true) | ||
427 | onMinimizedChanged: desktop.updateSubText() | 427 | onMinimizedChanged: desktop.updateSubText() | ||
428 | onVisibleNameChanged: desktop.updateSubText() | 428 | onVisibleNameChanged: desktop.updateSubText() | ||
429 | 429 | | |||
430 | /* since we move clipRect with 1, move it back */ | 430 | /* since we move clipRect with 1, move it back */ | ||
431 | x: (geometry.x * pagerItemGrid.widthScaleFactor) - Math.round(units.devicePixelRatio) | 431 | x: (geometry.x * pagerItemGrid.widthScaleFactor) - Math.round(units.devicePixelRatio) | ||
432 | y: (geometry.y * pagerItemGrid.heightScaleFactor) - Math.round(units.devicePixelRatio) | 432 | y: (geometry.y * pagerItemGrid.heightScaleFactor) - Math.round(units.devicePixelRatio) | ||
433 | width: Math.min(parent.width - x, geometry.width * pagerItemGrid.widthScaleFactor) | 433 | width: geometry.width * pagerItemGrid.widthScaleFactor | ||
434 | height: Math.min(parent.height - y, geometry.height * pagerItemGrid.heightScaleFactor) | 434 | height: geometry.height * pagerItemGrid.heightScaleFactor | ||
435 | visible: model.IsMinimized !== true | 435 | visible: model.IsMinimized !== true | ||
436 | color: { | 436 | color: { | ||
437 | if (desktop.active) { | 437 | if (desktop.active) { | ||
438 | if (model.IsActive === true) | 438 | if (model.IsActive === true) | ||
439 | return windowActiveOnActiveDesktopColor; | 439 | return windowActiveOnActiveDesktopColor; | ||
440 | else | 440 | else | ||
441 | return windowInactiveOnActiveDesktopColor; | 441 | return windowInactiveOnActiveDesktopColor; | ||
442 | } else { | 442 | } else { | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |