Skip to content

Accent Colors

The accent color overrides the primary color of your current app theme. It affects interactive elements across the entire app without changing any other aspect of the theme.

ZestSSH includes 8 accent color presets:

PresetHexPreview
Orange (default)#E8600AThe signature ZestSSH brand color
Blue#2196F3Material Blue
Green#4CAF50Material Green
Purple#9C27B0Material Purple
Pink#E91E63Material Pink
Red#F44336Material Red
Cyan#00BCD4Material Cyan
Amber#FFC107Material Amber

For full control, enter any hex color code:

  1. Go to Settings > Appearance > Accent Color.
  2. Tap Custom at the end of the preset row.
  3. Enter a 6-digit hex code (e.g., #FF6B35).
  4. The color applies immediately.

The accent color is used as the primary color in the generated Material 3 ThemeData. This affects:

  • Buttons — ElevatedButton background, OutlinedButton border and text, TextButton text
  • FAB — Floating action button background
  • Navigation — Active tab indicator, selected navigation bar icon and label, navigation indicator overlay
  • Input fields — Focused border (2px accent ring)
  • Switches — Active thumb and track tint
  • Chips — Selected chip background tint
  • Progress indicators — Circular and linear progress color
  • Dialogs — Action button text
  • Bottom sheets — Action items
  • Tab bar — Active tab label and indicator

A primaryHover variant is automatically computed by lightening the accent by 10% in HSL space, used for pressed/hover states.

  1. Open Settings > Appearance.
  2. Scroll to the Accent Color section.
  3. Tap a preset circle, or tap Custom to enter a hex code.

To restore the accent color to whatever the current app theme defines as its primary:

  1. Go to Settings > Appearance > Accent Color.
  2. Tap the Orange preset (or whichever matches your theme’s default).
  3. Alternatively, clear the custom accent by removing the stored preference.

Internally, setting the accent to null via ThemeUpdater.setCustomAccentColor(null) removes the custom_accent_color key from SharedPreferences and falls back to the theme’s built-in primary.

The custom accent color is stored in SharedPreferences as a 32-bit ARGB integer under the key custom_accent_color. It survives app restarts and theme switches — changing your app theme does not reset your accent color preference.