Skip to content

Sync images and color styles under a single setting #1236

@FFFFFF

Description

@FFFFFF

Hello everyone,

Thank you to all who keep the repository running and who are helping find the answers.

Could someone suggest solutions for the following cases:

  • Set a color for elements in <ComplicationSlot/> depending on the selected item in <ListConfiguration/>. The case: Set the color for <Font> and [COMPLICATION.MONOCHROMATIC_IMAGE] depending on the background image.
  • Set the @resource (change the image) for <HourHand>, <MinuteHand/>, <Image/> based on the selected <ListConfiguration/>. The case: Change the image depending on the background image.
  • Set the @resource for <Image/>, <HourHand>, <MinuteHand/> based on the selected <ColorConfiguration/>. The case: Change the image depending on the selected color style.

<ListConfiguration/> and <ColorConfiguration/> complements each other, but I haven't found them collaborating at 100%. Imagine you want to change the color (or/and shape) for analog hands (or any other images) after the background image has been changed by a user in the watch settings. Controlling the theme elements through the single setting in the menu seems impossible. You need to create two or more settings. A user could not know the relations between all settings. And the change could not be worth a separate setting in the menu (while imperfect from the visual point of view).

A quick solution might be checking attributes in [CONFIGURATION.themeColor.<some attr>]. I can not find the documentation for the object.

The long-run solution is to configure variables as an element (<VarableConfiguration/>) and use it "down the road" in elements and attributes as [CONFIGURATION.VarableConfiguration.variable1].

Could someone involved in the project underline the cons and pros of the suggested?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions