Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reader Themes #2106

Merged
merged 24 commits into from
May 14, 2024
Merged

Reader Themes #2106

merged 24 commits into from
May 14, 2024

Conversation

arthur-lemeur
Copy link
Collaborator

Added 5 new reading themes in Reader

@arthur-lemeur arthur-lemeur self-assigned this Apr 29, 2024
Copy link
Member

@panaC panaC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

branch not working, need to implement new Theme in the reader webview I guess.

@danielweck We need your help for this branch 🙏

@panaC panaC changed the title Reader Themes [WIP] Reader Themes Apr 30, 2024
@panaC panaC marked this pull request as draft April 30, 2024 09:37
@panaC
Copy link
Member

panaC commented May 2, 2024

I merge develop then npm run start:dev

I open a book : the webview is night but the library theme is neutral (light)

image
image

Weird, is it a theme migration issue on my machine ?

@danielweck
Copy link
Member

npm install to ensure package navigator is up to date?

@panaC
Copy link
Member

panaC commented May 2, 2024

npm install to ensure package navigator is up to date?

Same
I will check why

@panaC
Copy link
Member

panaC commented May 2, 2024

npm install to ensure package navigator is up to date?

Same I will check why

fixed with 41252a3

@panaC panaC changed the title [WIP] Reader Themes [Ready To Merge] Reader Themes May 2, 2024
@panaC panaC requested a review from danielweck May 2, 2024 11:58
@panaC panaC marked this pull request as ready for review May 2, 2024 12:04
@danielweck
Copy link
Member

Hello, how hard would it be to introduce one additional theme, this one would be special because it would allow users to choose background and foreground colours using a picker? (let's ignore hyperlinks colour for now)

https://react-spectrum.adobe.com/releases/2024-05-01.html

In addition, we have added a suite of new color components including ColorPicker, ColorArea, ColorField, ColorSlider, ColorSwatch, ColorSwatchPicker, ColorWheel, currently in beta. These enable you to build fully customizable color pickers, including accessible color descriptions for screen reader support.

@danielweck
Copy link
Member

danielweck commented May 3, 2024

PS: note the colour swatch picker, it is a radio too :)
(keyboard tab + arrows)

https://react-spectrum.adobe.com/react-aria/ColorSwatchPicker.html

@danielweck danielweck changed the title [Ready To Merge] Reader Themes [WIP] Reader Themes May 6, 2024
@danielweck
Copy link
Member

I feel that this PR is a very good start, even if the choice of annotation colours is suboptimal (see the issue I logged about contrast and differentiation). We can iterate later about the user-picked custom colours functionality, this is a good stretch goals but not critically blocking for the release.
I am particularly interested in getting this PR merged because the "DB" (state) changes impact our testing workflow, for example when switching from this PR branch back to another (like develop) after having changed the app theme.
So @arthur-lemeur do you have any pending code in the PR branch? What do you think about merging now so that the PR doesn't lag behind much longer?

@panaC
Copy link
Member

panaC commented May 14, 2024

@danielweck The PR is ready for me, I'm merging to develop

@panaC panaC changed the title [WIP] Reader Themes Reader Themes May 14, 2024
@panaC
Copy link
Member

panaC commented May 14, 2024

ref #577

@panaC panaC merged commit 9f4fff2 into develop May 14, 2024
6 checks passed
@panaC panaC deleted the dev/reader-themes branch May 14, 2024 11:44
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.

None yet

3 participants