Skip to content

Commit

Permalink
Use CanvasPaletteHelper instead of PaletteChangeNofifier in appropria…
Browse files Browse the repository at this point in the history
…te places
  • Loading branch information
timangus committed Oct 24, 2023
1 parent 86d3246 commit 0255ea7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import QtQuick

import app.graphia
import app.graphia.Shared
import app.graphia.Shared.Controls

// The Rectangle based implementation of Outline can't render half pixel widths
Expand Down Expand Up @@ -60,7 +60,7 @@ Canvas

onOutlineVisibleChanged: { requestPaint(); }
onColorChanged: { requestPaint(); }
PaletteChangeNotifier { onPaletteChanged: { root.requestPaint(); } }
CanvasPaletteHelper {}
Connections
{
target: Screen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ Item
function onContentYChanged() { backgroundCanvas.requestPaint(); }
}

PaletteChangeNotifier { onPaletteChanged: { backgroundCanvas.requestPaint(); } }
CanvasPaletteHelper {}
}

ScrollBar.horizontal: ScrollBar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import QtQuick

import app.graphia
import app.graphia.Shared

Rectangle
{
Expand Down Expand Up @@ -82,9 +82,9 @@ Rectangle
y += separation;
}
}
}

PaletteChangeNotifier { onPaletteChanged: { canvas.requestPaint(); } }
CanvasPaletteHelper {}
}

onVisibleChanged:
{
Expand Down

0 comments on commit 0255ea7

Please sign in to comment.