Compare commits
No commits in common. "27e1f63691354a28d51dc60f0ef6287c5f5b438c" and "5a7d2055163d71ef302820534302bba81723d5f3" have entirely different histories.
27e1f63691
...
5a7d205516
1 changed files with 2 additions and 18 deletions
|
|
@ -42,22 +42,6 @@ PanelWindow {
|
|||
|
||||
ctx.clearRect(0, 0, w, height);
|
||||
|
||||
// Opaque backing behind the stroke so it's not transparent
|
||||
ctx.fillStyle = M.Theme.base00.toString();
|
||||
ctx.beginPath();
|
||||
if (r > lw) {
|
||||
ctx.moveTo(0, r);
|
||||
ctx.arc(r, r, r, Math.PI, -Math.PI / 2);
|
||||
ctx.lineTo(w - r, 0);
|
||||
ctx.arc(w - r, r, r, -Math.PI / 2, 0);
|
||||
ctx.lineTo(w, lw);
|
||||
ctx.lineTo(0, lw);
|
||||
} else {
|
||||
ctx.rect(0, 0, w, lw);
|
||||
}
|
||||
ctx.fill();
|
||||
|
||||
// Gradient stroke
|
||||
const grad = ctx.createLinearGradient(0, 0, w, 0);
|
||||
grad.addColorStop(0, M.Theme.base0C.toString());
|
||||
grad.addColorStop(1, M.Theme.base09.toString());
|
||||
|
|
@ -80,8 +64,8 @@ PanelWindow {
|
|||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
|
||||
anchors.rightMargin: Math.max(M.Theme.barPadding, M.Theme.screenRadius)
|
||||
anchors.leftMargin: M.Theme.barPadding
|
||||
anchors.rightMargin: M.Theme.barPadding
|
||||
|
||||
// ---- center (declared first so left/right can anchor to it) ----
|
||||
RowLayout {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue