Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midiviz
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PLN
midiviz
Commits
430d10a5
Commit
430d10a5
authored
Sep 28, 2026
by
PLN (Algolia)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devcon plate: translucent gradient so D1-D3 still read under the word
parent
e0a434c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
midiviz.py
midiviz.py
+7
-2
No files found.
midiviz.py
View file @
430d10a5
...
...
@@ -592,6 +592,10 @@ WORD_ALPHA = 0.8
PLATE_INK
=
"#14283f"
PLATE_STOPS
=
((
0.0
,
"#fd956e"
),
(
0.55
,
"#df96ef"
),
(
1.0
,
"#46dbee"
))
PLATE_GRID
=
(
0xff
,
0xff
,
0xff
,
46
)
# Only the gradient is translucent; the letters stay solid. PLN, 2026-09-28:
# "ensure that we still see the D1-3 under the lettering" -- those three cells
# are wired controls, and a sticker that hid them would read as unwired.
PLATE_ALPHA
=
0.5
# ── the HL feed ────────────────────────────────────────────────────────────
# PLN, 2026-09-24: "please do indeed sub from the events, to indeed feed
...
...
@@ -2026,6 +2030,7 @@ def build_widget(port_label: str, reader: "Reader | None", scale: float = 1.0,
g
=
QtGui
.
QLinearGradient
(
0
,
0
,
pw
,
ph
)
for
at
,
col
in
PLATE_STOPS
:
g
.
setColorAt
(
at
,
QtGui
.
QColor
(
col
))
qp
.
setOpacity
(
PLATE_ALPHA
)
qp
.
fillRect
(
0
,
0
,
pw
,
ph
,
QtGui
.
QBrush
(
g
))
qp
.
setPen
(
QtGui
.
QColor
(
*
PLATE_GRID
))
step
=
max
(
4
,
round
(
ph
/
5
))
...
...
@@ -2033,6 +2038,7 @@ def build_widget(port_label: str, reader: "Reader | None", scale: float = 1.0,
qp
.
drawLine
(
x
,
0
,
x
,
ph
)
for
y
in
range
(
step
,
ph
,
step
):
qp
.
drawLine
(
0
,
y
,
pw
,
y
)
qp
.
setOpacity
(
1.0
)
qp
.
drawPixmap
(
round
((
pw
-
word_pm
.
width
())
/
2.0
),
round
((
ph
-
word_pm
.
height
())
/
2.0
),
word_pm
)
finally
:
...
...
@@ -2054,8 +2060,7 @@ def build_widget(port_label: str, reader: "Reader | None", scale: float = 1.0,
if
pm
is
None
:
return
row_y
=
self
.
my
+
3
*
self
.
ch
# PHYSICAL_ORDER index of D
# the plate is a sticker, opaque: idle marks bleeding through
# read as dirt on the gradient
# the plate carries its own alpha (see PLATE_ALPHA)
p
.
setOpacity
(
1.0
if
self
.
theme
.
word_plate
else
WORD_ALPHA
)
try
:
# clamped to the span's outer rect: at the smallest windows
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment