Commit 778c8d7
committed
Script Window: Don't clamp font color alpha channel to 0.65
Because the CodeEdit's readonly property is set, TextEdit forces the alpha
channel of all text rendered to be no higher than the alpha channel of the
default colour for text in disabled controls, which is 0.65 as I type this.
While we do not want the code in this popover to be editable, we do want
it to be legible.
Override the relevant font color on the control to set its alpha channel to 1,
effectively disabling this undesired clamping.1 parent 527bc4b commit 778c8d7
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
0 commit comments