adjust clipboard toolbar key background

This commit is contained in:
Helium314 2024-01-07 11:05:02 +01:00
parent 71ff8bc7aa
commit f0410fd783
2 changed files with 2 additions and 1 deletions

View file

@ -118,7 +118,7 @@ class ClipboardHistoryView @JvmOverloads constructor(
it.setOnTouchListener(this@ClipboardHistoryView)
it.setOnClickListener(this@ClipboardHistoryView)
colors.setColor(it, ColorType.TOOL_BAR_KEY)
colors.setBackground(it, ColorType.TOOL_BAR_KEY)
colors.setBackground(it, ColorType.BACKGROUND)
}
colors.setBackground(clipboardStrip, ColorType.BACKGROUND)
initialized = true

View file

@ -282,6 +282,7 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick
public void onVisibilityChanged(@NonNull final View view, final int visibility) {
super.onVisibilityChanged(view, visibility);
if (view == this)
// workaround for a bug with inline suggestions views that just keep showing up otherwise, https://github.com/Helium314/openboard/pull/386
mSuggestionsStrip.setVisibility(visibility);
}