Skip to content

armgit / andee

Public Imported from GitHub
0

Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。

style(ui): quiet the card's chrome and set the ball a little lower

booboosuid58b6ff490b5
diff --git a/app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt b/app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt
index cf67b05..6a9c84c 100644
--- a/app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt
+++ b/app/src/main/java/net/kuafuai/andee/ui/FloatingWindowUi.kt
@@ -2006,7 +2006,7 @@ class FloatingWindowUi(
val tips = TextView(context).apply {
text = AppLocale.str(context, R.string.window_tips)
textSize = Glass.Type.CAPTION
- setTextColor(Color.parseColor(Glass.SECONDARY))
+ setTextColor(Color.parseColor(Glass.MUTED))
gravity = Gravity.CENTER
// The bottom padding clears the gesture bar, the same 30 dp the
// scrollback's last row used to reserve for itself — this bar
@@ -2098,20 +2098,20 @@ class FloatingWindowUi(
}
keys.addView(
- barButton(R.drawable.ic_artifacts, Glass.LABEL, "产物") { listeners.onArtifactsClick() }
+ barButton(R.drawable.ic_artifacts, Glass.MUTED, "产物") { listeners.onArtifactsClick() }
)
// ✓ and not ■: the stop button used to sit here, and stop is the one
// action in this bar the ball can already perform — see onStopClick.
- keys.addView(barButton(R.drawable.ic_check, Glass.LABEL, "自检") { listeners.onSelfCheckClick() })
+ keys.addView(barButton(R.drawable.ic_check, Glass.MUTED, "自检") { listeners.onSelfCheckClick() })
// No ⌨ here. Typing moved onto the ball's double-tap, and the bar is
// the wrong place for it twice over: it only exists while the card is
// unfolded (so the way to type vanished with the fold — the same fault
// that made "点右上角的 ⌨" a lie in a failure message), and it put a
// second meaning on the one control the user already had to learn.
- keys.addView(barButton(R.drawable.ic_settings, Glass.LABEL, "设置") { listeners.onSettingsClick() })
+ keys.addView(barButton(R.drawable.ic_settings, Glass.MUTED, "设置") { listeners.onSettingsClick() })
// Reads as close, not as resize: the card is a thing you dismiss, and the
// corner ball it folds into stays on screen either way.
- keys.addView(barButton(R.drawable.ic_close, Glass.LABEL, "收起") { listeners.onMinimizeClick() })
+ keys.addView(barButton(R.drawable.ic_close, Glass.MUTED, "收起") { listeners.onMinimizeClick() })
bar.addView(keys)
return bar
@@ -2143,7 +2143,8 @@ class FloatingWindowUi(
description: String,
onClick: () -> Unit,
): View {
- val pad = dp(6)
+ // The 36 dp target stays; only the glyph shrinks, to 20 dp.
+ val pad = dp(8)
return ImageView(context).apply {
setImageDrawable(
ContextCompat.getDrawable(context, icon)?.mutate()?.apply {
@@ -2524,7 +2525,7 @@ class FloatingWindowUi(
* On the phone this stacks with a ~12 dp cluster clearance, on a wide
* tablet it is the whole offset.
*/
- private const val BALL_NUDGE_DP = 14
+ private const val BALL_NUDGE_DP = 26
/**
* Floor for the card's height while a typing field is up — see