Skip to content

Commit

Permalink
feat: restore horizontal padding for candidate item in candidate window
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiredPlanck committed Dec 5, 2024
1 parent 41623f5 commit d9408de
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ import com.osfans.trime.data.theme.ColorManager
import com.osfans.trime.data.theme.FontManager
import com.osfans.trime.data.theme.Theme
import com.osfans.trime.util.sp
import splitties.dimensions.dp
import splitties.views.backgroundColor
import splitties.views.dsl.core.Ui
import splitties.views.dsl.core.textView
import splitties.views.horizontalPadding

class LabeledCandidateItemUi(
override val ctx: Context,
Expand Down Expand Up @@ -53,7 +55,10 @@ class LabeledCandidateItemUi(
private val highlightCandidateTextColor = ColorManager.getColor("hilited_candidate_text_color")!!
private val highlightBackColor = ColorManager.getColor("hilited_back_color")!!

override val root = textView()
override val root =
textView {
horizontalPadding = dp(theme.generalStyle.candidatePadding)
}

fun update(
candidate: RimeProto.Candidate,
Expand Down

0 comments on commit d9408de

Please sign in to comment.