FIx missing button frame for reveal button
This commit is contained in:
@@ -884,8 +884,9 @@ void BaseTheme::drawKeyboardKey(const GfxRenderer& renderer, Rect rect, const ch
|
||||
const char* secondaryLabel, const KeyboardKeyType keyType) const {
|
||||
if (isSelected) {
|
||||
renderer.fillRect(rect.x, rect.y, rect.width, rect.height, true);
|
||||
} else if (keyType == KeyboardKeyType::Shift || keyType == KeyboardKeyType::Mode || keyType == KeyboardKeyType::Del ||
|
||||
keyType == KeyboardKeyType::Space || keyType == KeyboardKeyType::Ok) {
|
||||
} else if (keyType == KeyboardKeyType::Shift || keyType == KeyboardKeyType::Mode ||
|
||||
keyType == KeyboardKeyType::Reveal || keyType == KeyboardKeyType::Space ||
|
||||
keyType == KeyboardKeyType::Del || keyType == KeyboardKeyType::Ok) {
|
||||
renderer.drawRect(rect.x, rect.y, rect.width, rect.height);
|
||||
}
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ struct ThemeMetrics {
|
||||
|
||||
enum UIIcon { Folder, Text, Image, Book, File, Recent, Settings, Transfer, Library, Wifi, Hotspot, Weather };
|
||||
|
||||
enum class KeyboardKeyType { Normal, Shift, Mode, Space, Del, Ok };
|
||||
enum class KeyboardKeyType { Normal, Shift, Mode, Reveal, Space, Del, Ok };
|
||||
|
||||
// Default theme implementation (Classic Theme)
|
||||
// Additional themes can inherit from this and override methods as needed
|
||||
|
||||
Reference in New Issue
Block a user