Skip to content

Add "reverse" (red) styling on Commodore 64 - #101

Merged
dstelzer merged 14 commits into
mainfrom
6502-reverse
Sep 2, 2026
Merged

Add "reverse" (red) styling on Commodore 64#101
dstelzer merged 14 commits into
mainfrom
6502-reverse

Conversation

@dstelzer

Copy link
Copy Markdown
Contributor
image

@dstelzer

Copy link
Copy Markdown
Contributor Author

@sehugg Requesting review on this one; it's a fairly straightforward addition, but I want to make sure it works with your Apple II implementation.

@dstelzer

Copy link
Copy Markdown
Contributor Author

(I'm also open to feedback on the colors; I'm color-blind so what looks good to me does not always look good to others.)

@sehugg

sehugg commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

I see one issue, I think you meant:

ldy #cssparam_none

There are still a pair of bugs in the Apple frontend and engine that affect using styles with reverse video (opcodes are fine) so until I fix those it may look ugly.

Also I would swap the first and last colors, orange is a natural fit with blue.

@dstelzer

Copy link
Copy Markdown
Contributor Author

Oops! Good catch.

I tried it out on the Apple II with the reverse opcode, but it seems to fall out of reverse mode every time a new div or span is entered, which makes it hard to see the effect.

@dstelzer

Copy link
Copy Markdown
Contributor Author
image

Hmmm…

@sehugg

sehugg commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

I like the cold/warm split. But what about making reverse normal = white? Italics and bold could still be warm colors.

image

@dstelzer

dstelzer commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

Oh, interesting! I thought the background on this interpreter was "white", not "light gray". That means a more proper reverse is actually possible (light against the background instead of dark against the background).

Reverse-italics could then be red and pink; but what about reverse-bold?

@sehugg

sehugg commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

I like the yellow for reverse-bold, it's orthogonal to the light gray of the normal bold.

@dstelzer

Copy link
Copy Markdown
Contributor Author

So like this?

image

@sehugg

sehugg commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Yeah! Looks good!

@dstelzer

dstelzer commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

The poll is currently neck and neck. I'm counting you as a vote for "reverse is white, reverse italic is red", which puts that on top by one, but I'll give people a bit longer to weigh in if they want to.

@dstelzer
dstelzer merged commit 01954b8 into main Sep 2, 2026
6 checks passed
@dstelzer
dstelzer deleted the 6502-reverse branch September 2, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants