Commit Graph

53 Commits

Author SHA1 Message Date
Jorge Martin Espinosa c4529b87b4 Remove Roborazzi, use Paparazzi for Compound (#7735)
* Remove Roborazzi, use Paparazzi for Compound

The new screenshots will be recorded with the rest of the Paparazzi ones. Note the names changed, since Paparazzi enforces a `$packagename.$testname.$name.$extension` format

* Set a max width value for color previews

* Merge the `verifyPaparazziDebug` CI steps

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-09-21 12:27:56 +02:00
Benoit Marty 1ee156f480 Remove Showkase from the project. 2026-09-09 15:56:25 +02:00
hayaksi1 ddd89f46df Resolve the System theme from the application configuration
Selecting a Light or Dark theme makes AppCompatDelegate rewrite the
activity configuration to the forced night mode. isSystemInDarkTheme
reads that same configuration, so switching back to System kept showing
the previously forced theme.

Read the night mode from the application configuration instead, which
AppCompat leaves untouched and itself uses to expand
MODE_NIGHT_FOLLOW_SYSTEM. The activity configuration is still used as
the recomposition key so a system-wide theme change is picked up.
2026-08-17 11:33:09 +03:00
Jorge Martin Espinosa 0cd163a680 Import Compound tokens from v10.2.3 (#7272)
* Import Compound tokens from `v10.2.3`

* Remove manually added `bgSubtleTertiary` semantic color: it's in Compound now

* Bump enterprise module to a compatible commit
2026-07-28 09:07:24 +00:00
Matt Van Horn 9042b4be4f Make settings section separators visible in black theme (#7039)
* Make settings section separators visible in black theme

In the Black (OLED) theme the canvas is forced to pure black while the
section-separator divider keeps its standard-dark colour (outlineVariant,
~10% alpha white), leaving dividers in Settings and related screens almost
invisible. Add an OLED-aware listSectionDivider alias that lightens the
divider only when the black theme is active, and use it for the
ListSectionHeader divider. Light and standard-dark themes are unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>

* Set separatorSecondary for Black theme instead of a custom divider alias

Following review feedback: now that the global HorizontalDivider uses
separatorSecondary (#7054), give the Black/OLED theme a visible
separatorSecondary value in ElementTheme instead of carrying a bespoke
listSectionDivider alias. This fixes all separators on pure black, not
just section headers. The exact color is pending design confirmation.

* chore(theme): remove in-code design discussion comment

Move design discussion out of the code per review; the divider color
decision lives in the PR thread.

* Update screenshots

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>

---------

Signed-off-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: ElementBot <android@element.io>
Co-authored-by: Jorge Martin Espinosa <jorgem@element.io>
2026-07-28 09:51:15 +02:00
Benoit Marty a8cbc7911e Fix typo 2026-07-10 12:24:45 +02:00
Benoit Marty e41c806dd4 Add Figma link 2026-07-10 12:22:42 +02:00
Benoit Marty 8c935d8682 Improve focus rendering: now display a blue inset ring around the focused component.
Closes #6397
2026-07-10 12:14:55 +02:00
Benoit Marty c430877d87 Ensure Robolectric test are run using API 36 until the library support API 37. 2026-06-18 12:18:32 +02:00
ElementBot 9eed7de799 Update screenshots 2026-06-04 14:33:07 +00:00
Benoit Marty 1592ab9686 Sync compound tokens https://github.com/element-hq/compound-design-tokens/releases/tag/v10.2.2 2026-06-04 16:13:31 +02:00
Benoit Marty 1a73ab0094 Import compound token from release 10.2.1 https://github.com/element-hq/compound-design-tokens/releases/tag/v10.2.1 (#6942)
* Sync compound tokens https://github.com/element-hq/compound-design-tokens/releases/tag/v10.2.1

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2026-06-03 09:58:00 +02:00
Timur Gilfanov f7cfa6cda8 Merge branch 'develop' into feature-oled-black 2026-04-14 10:13:46 +04:00
Timur Gilfanov fd92a2eef2 Remove default value for allowBlackTheme in mapToTheme 2026-04-05 12:34:25 +04:00
Timur Gilfanov 5e6a6af409 Add "Allow black theme" feature flag 2026-04-05 12:03:50 +04:00
ElementBot 13de580a51 Update screenshots 2026-04-02 07:52:20 +00:00
Benoit Marty fe05c27232 Import token v10.0.0./tools/compound/import_tokens.sh -b v10.0.0 2026-04-01 18:08:32 +02:00
Timur Gilfanov d0dcbab750 Merge branch 'develop' into feature-oled-black 2026-03-30 11:08:53 +04:00
ElementBot 968b967864 Update screenshots 2026-03-24 16:04:35 +00:00
Benoit Marty e9811ada20 Add missing color in preview. 2026-03-24 16:33:20 +01:00
Benoit Marty 6ce20d2e9e Import compound token v8.0.0
./tools/compound/import_tokens.sh -b v8.0.0
2026-03-24 15:59:50 +01:00
ElementBot cea003a929 Update screenshots 2026-03-23 12:23:50 +00:00
Timur Gilfanov a96c146d30 Introduce "Black" theme and refactor theme handling
* Add `Theme.Black` to the `Theme` enum and update `isDark()` to include it.
* Refactor `ElementTheme` to accept a `Theme` object instead of a `darkTheme` boolean, allowing for more specific color mapping (e.g., setting `bgCanvasDefault` to `Color.Black` for the Black theme).
* Update `AdvancedSettingsPresenter` and `AdvancedSettingsState` to include "Black" as a user-selectable theme option.
* Adjust `ElementThemeApp` and `MaterialTextPreview` to handle the expanded theme selection.
* Add `ElementPreviewBlack` and update existing preview components to support the new theme.
* Update Konsist tests to ensure `@PreviewsDayNight` annotated functions don't have "BlackPreview" suffix.
2026-03-23 15:26:16 +04:00
ElementBot 84b946f6d5 Update screenshots 2026-03-02 12:19:18 +00:00
Benoit Marty cc0a9dc907 Fix compilation issue. 2026-03-02 12:44:58 +01:00
Benoit Marty b27ab2ef0c Import compound token v6.10.1
./tools/compound/import_tokens.sh -b v6.10.1
2026-03-02 12:40:33 +01:00
ElementBot 0a9c20e870 Update screenshots 2025-12-21 10:46:34 +00:00
Benoit Marty 328a1b77fa Use existing preview. 2025-12-21 11:33:07 +01:00
Benoit Marty 92c0de7f83 Add preview for ElementTheme.typography values. 2025-12-20 18:23:50 +01:00
Benoit Marty 8c446ff81f Remove materialTypography val from ElementTheme.
We should only use `typography`.
2025-12-20 17:03:19 +01:00
ElementBot eef74524cb Update screenshots 2025-12-17 11:26:22 +00:00
Benoit Marty 57a02d01fc Icon Backspace and BackspaceSolid must be auto-mirrored. 2025-12-17 12:03:04 +01:00
Benoit Marty 87dbfbd2b2 Import Compound tokens from release v6.4.3
https://github.com/element-hq/compound-design-tokens/releases/tag/v6.4.3
2025-12-17 11:59:16 +01:00
ElementBot 72c3e79ca6 Update screenshots 2025-12-12 11:36:01 +00:00
Benoit Marty 9c0c1ee722 Import Compound tokens from release v6.4.2
https://github.com/element-hq/compound-design-tokens/releases/tag/v6.4.2
2025-12-12 12:20:13 +01:00
Benoit Marty a00a188cd9 Fix Javascript issue. 2025-11-17 18:05:29 +01:00
Benoit Marty 001e399d40 vector-im -> element-hq 2025-11-17 18:04:54 +01:00
Benoit Marty eb31505dc7 Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
Benoit Marty f86431e663 Copyright: Add final period 2025-11-10 10:13:41 +01:00
Benoit Marty c4e0370f41 Copyright: run command uv run license-editor --repository ../element-x-android 2025-11-10 10:09:26 +01:00
Benoit Marty 96e1406881 Move dependencies block out of the android block. 2025-11-03 22:29:38 +01:00
Benoit Marty 570c1ebdb4 Change Preview height to give space for new icons to come. 2025-10-22 16:06:53 +02:00
Benoit Marty 5720b2df1a Use right colors on ForcedDarkElementTheme 2025-10-22 09:48:07 +02:00
Benoit Marty 07b9a8456b Move SemanticColorsLightDark to compound module 2025-10-22 09:35:55 +02:00
Benoit Marty 3fb110d991 Merge pull request #5503 from element-hq/feature/bma/immutableCleanup
Do some cleanup on our immutable annotation usage
2025-10-10 17:42:26 +02:00
Jorge Martin Espinosa 6b126368ea Import Compound tokens - fixed icons (#5506)
* Import fixed Compound icons

* Revert changes to thread icons

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
2025-10-10 15:14:22 +02:00
Benoit Marty 271ae19436 Remove useless Immutable annotation 2025-10-09 18:22:33 +02:00
Benoit Marty 5be157b29e Clean up and add unit test on Theme.isDark() 2025-10-08 11:45:12 +02:00
Benoit Marty d4e295807f Import Compound tests from project https://github.com/element-hq/compound-android 2025-10-06 10:47:31 +02:00
Benoit Marty 9938b74669 Fix lint issue 2025-10-06 10:17:33 +02:00