Skip to content

Add keyboard background gradients and a purple pink theme - #1379

Open
tgll wants to merge 2 commits into
Julow:masterfrom
tgll:theme/gradient-purple-pink
Open

Add keyboard background gradients and a purple pink theme#1379
tgll wants to merge 2 commits into
Julow:masterfrom
tgll:theme/gradient-purple-pink

Conversation

@tgll

@tgll tgll commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Adds optional support for two-color vertical gradients on the keyboard background, along with a Purple Pink Gradient theme demonstrating the feature.

Changes

  • Adds optional theme attributes for the gradient start and end colors
  • Draws the gradient behind the keyboard keys
  • Adds the Purple Pink Gradient theme
  • (Preserves the existing solid-color rendering for themes without gradient attributes)
  • (Does not modify keyboard input behavior)

(Tested on a Pixel 8 Pro API 37 emulator)

image

@Julow Julow left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

That's a really good idea!

};

@Override
protected void onSizeChanged(int w, int h, int oldw, int oldh)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This is not the right class to define and update _keyboardBackgroundPaint. Paints are computed in Theme.Computed (line 106 in Theme.java).

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