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

Dark mode #98

Closed
orontee opened this issue Nov 3, 2024 · 1 comment
Closed

Dark mode #98

orontee opened this issue Nov 3, 2024 · 1 comment
Labels
enhancement New feature or request screenshots Issue implies screenshots update test

Comments

@orontee
Copy link
Owner

orontee commented Nov 3, 2024

Context

Firmware 6.8.x introduces "dark mode". @neilswann80 suggested to implement "dark mode" and to link that mode to the system state (cf. #71 (comment)).

Analysis

  1. Build with last SDK, cf. https://github.com/pocketbook/SDK_6.3.0/releases/download/6.8/SDK-B288-6.8.7z
  2. If firmware >=6.8, set application capability and device will handle everything!:
enum iv_app_capability_e {
    APP_CAPABILITY_SUPPORT_SCREEN_INVERSION = 1 << 0,
    APP_CAPABILITY_USER                     = 1 << 1 // The first role that can be used for application-specific purposes.
} typedef iv_app_capability;

/*
 * Set/Get app capability bitfield mask defined by enum iv_app_capability_e
 */
void IvSetAppCapability(int caps);
int IvGetAppCapability(void);

⚠️ Application must be tested with old firmware!

@orontee orontee added the enhancement New feature or request label Nov 3, 2024
@orontee
Copy link
Owner Author

orontee commented Nov 13, 2024

Looks nice!

orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
@orontee orontee added screenshots Issue implies screenshots update test labels Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
orontee added a commit that referenced this issue Nov 13, 2024
@orontee orontee closed this as completed Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request screenshots Issue implies screenshots update test
Projects
None yet
Development

No branches or pull requests

1 participant