Merge pull request #84 from quadbyte/taskbar-fixes
Taskbar fixes + misc
This commit is contained in:
commit
62800d928b
4 changed files with 10 additions and 4 deletions
|
|
@ -8,6 +8,10 @@ Row {
|
|||
spacing: 10
|
||||
visible: Settings.settings.showSystemInfoInBar
|
||||
|
||||
// The width calculation below is required to ensure our row width is an integer.
|
||||
// If omitted the next component to the right might get blurry (Taskbar icons).
|
||||
width: Math.floor(cpuUsageLayout.width + cpuTempLayout.width + memoryUsageLayout.width + (2 * 10))
|
||||
|
||||
Row {
|
||||
id: cpuUsageLayout
|
||||
spacing: 6
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Item {
|
|||
// Attach custom tooltip
|
||||
StyledTooltip {
|
||||
id: styledTooltip
|
||||
positionAbove: false
|
||||
}
|
||||
|
||||
function getAppIcon(toplevel: Toplevel): string {
|
||||
|
|
@ -94,7 +95,8 @@ Item {
|
|||
cursorShape: Qt.PointingHandCursor
|
||||
|
||||
onEntered: {
|
||||
styledTooltip.text = appTitle || appId;
|
||||
var text = appTitle || appId;
|
||||
styledTooltip.text = text.length > 60 ? text.substring(0, 60) + "..." : text;
|
||||
styledTooltip.targetItem = appButton;
|
||||
styledTooltip.tooltipVisible = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ Window {
|
|||
color: "transparent"
|
||||
visible: false
|
||||
|
||||
minimumWidth: Math.max(50, tooltipText.implicitWidth + 24)
|
||||
minimumHeight: Math.max(50, tooltipText.implicitHeight + 16)
|
||||
property var _timerObj: null
|
||||
|
||||
onTooltipVisibleChanged: {
|
||||
|
|
@ -36,6 +34,9 @@ Window {
|
|||
}
|
||||
|
||||
function _showNow() {
|
||||
width = Math.max(50, tooltipText.implicitWidth + 24)
|
||||
height = Math.max(50, tooltipText.implicitHeight + 16)
|
||||
|
||||
if (!targetItem) return;
|
||||
|
||||
if (positionAbove) {
|
||||
|
|
|
|||
|
|
@ -184,7 +184,6 @@ qs ipc call globalIPC toggleIdleInhibitor
|
|||
|
||||
You will need to install a few things to get everything working:
|
||||
|
||||
- `qt6-5compat` for some graphical effects
|
||||
- `cava` so the audio visualizer works
|
||||
- `gpu-screen-recorder` so that the record button works
|
||||
- `xdg-desktop-portal-gnome` or any other xdg-desktop-portal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue