Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LatinIME
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
keyboard
LatinIME
Commits
7fd33bac
Commit
7fd33bac
authored
8 months ago
by
Aleksandras Kostarevas
Browse files
Options
Downloads
Patches
Plain Diff
Fix emoji searchbar text color
parent
d52b5ddf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/src/org/futo/inputmethod/latin/uix/ActionTextEdit.kt
+5
-0
5 additions, 0 deletions
java/src/org/futo/inputmethod/latin/uix/ActionTextEdit.kt
with
5 additions
and
0 deletions
java/src/org/futo/inputmethod/latin/uix/ActionTextEdit.kt
+
5
−
0
View file @
7fd33bac
...
...
@@ -6,9 +6,11 @@ import android.view.inputmethod.EditorInfo
import
android.view.inputmethod.InputConnection
import
androidx.compose.foundation.layout.fillMaxHeight
import
androidx.compose.foundation.layout.fillMaxWidth
import
androidx.compose.material3.LocalContentColor
import
androidx.compose.runtime.Composable
import
androidx.compose.runtime.MutableState
import
androidx.compose.ui.Modifier
import
androidx.compose.ui.graphics.toArgb
import
androidx.compose.ui.platform.LocalContext
import
androidx.compose.ui.platform.LocalDensity
import
androidx.compose.ui.unit.dp
...
...
@@ -60,6 +62,8 @@ fun ActionTextEditor(text: MutableState<String>) {
val
inputType
=
EditorInfo
.
TYPE_CLASS_TEXT
or
EditorInfo
.
TYPE_TEXT_FLAG_AUTO_COMPLETE
or
EditorInfo
.
TYPE_TEXT_FLAG_NO_SUGGESTIONS
val
color
=
LocalContentColor
.
current
AndroidView
(
factory
=
{
ActionEditText
(
context
).
apply
{
...
...
@@ -68,6 +72,7 @@ fun ActionTextEditor(text: MutableState<String>) {
setTextChangeCallback
{
text
.
value
=
it
}
setText
(
text
.
value
)
setTextColor
(
color
.
toArgb
())
layoutParams
=
ViewGroup
.
LayoutParams
(
ViewGroup
.
LayoutParams
.
MATCH_PARENT
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment