Add static/classic/amo/installed (whatever they're called) themes
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- javascript
- Domaine
- frontend
Piste de recherche
Commencez par lire le flux de ThemeBuilder et l’utilisation de la browser.management API décrite dans l’issue, puis suivez la manière dont Firefox Color stocke et applique actuellement les thèmes. Définissez comment les thèmes statiques, les thèmes installés et l’override sélectionné doivent être représentés avant d’implémenter les changements de l’UI et de l’état. C’est terminé lorsque les thèmes statiques installés peuvent être affichés, sélectionnés, persistés et appliqués sans que le thème Firefox Color prenne le dessus.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
So this comes out of a discussion with the add-ons team, and the idea was that we might collaborate on this issue as a changing of the guard, so to speak. I was noodling around with this the other day, but didn't get very far...here's what i was thinking...certainly open to better suggestions:
- Use
browser.managementapi to get all installed themes from the user and track which one they have enabled. - Create a new set of redux actions called
staticsthat can manage the state of static themes. I think we'd need to keep a list of installed static themes, a boolean to track if a static theme should override a ff color theme, and a pointer to user's selected static theme. something like
statics.id: // id of last selected static theme
statics.isActive: // boolean if a static theme should override an FF color API theme
statics.list // list of all static themes the user has installed
- On the UI side, create a new panel in the
ThemeBuilderthat renders all the user's static themes. Something likePaginatedStaticPicker. - There are up to six themes that come from Firefox and do not exist in AMO, these are default, dark, compact light, a stripey pastel theme, the browser renaissance theme, and an outer space theme. For each of these we make representations using our theming JSON schema. For AMO themes, we can do a fetch of the BG image of each using the theme id and use that to make a representation of each AMO Theme.
- When a user clicks on one of these themes, we update the app state and override the selected FF color theme. We also pass back a message to browser.management to update to the selected static theme.
- Next time FF color starts up, it checks to see if
statics.isActiveis true before taking over and re-theming based on the current FF color theme state
- Langage dominant
- JavaScript
- Étoiles
- 506
- Forks
- 100
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de mozilla/FirefoxColor
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
mozilla/FirefoxColor#1081 · 1 commentaire ·
-
does not see browserOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
mozilla/FirefoxColor#1087 · 1 commentaire ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
mozilla/FirefoxColor#1085 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 68/100
mozilla/FirefoxColor#1084 · 1 commentaire ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
mozilla/FirefoxColor#1083 · 1 réaction ·
Toutes les issues de mozilla/FirefoxColor
Issues similaires
-
curriculum documentation quality
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
githubnext/gh-aw-workshop#3897 ·
Les mainteneurs répondent en général sous 2 jours
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficulté 2/5 1-3 heures Accessibilité débutants 91/100
Les mainteneurs répondent en général sous 1 jour
-
Add: RSV Honduras FeedOuvertecheck:failed feeds:add
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
iptv-org/database#36179 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[Bug] : Main navigation "Upcoming Events" link navigates to /events/ without query parameterOuvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
Les mainteneurs répondent en général sous 1 jour