ospfranco / sol

MacOS launcher & command palette
MIT License
1.94k stars 91 forks source link

Logo about #26

Closed Angelk90 closed 2 years ago

Angelk90 commented 2 years ago

Hi @ospfranco , as you can see from the image when it is in light mode, the logo is not visible.

I tried a similar thing, but when the theme change happens it doesn't update.

let hydrate = async () => {
    const storeState = await AsyncStorage.getItem('@ui.store')
    const colorScheme = Appearance.getColorScheme()
    console.log(colorScheme)// no update
...

{
      iconImage: colorScheme === 'dark' ? Assets.SolWhiteSmall : Assets.SolBlackSmall,
      name: 'About',
      type: ItemType.CONFIGURATION,
      callback: () => {
        store.focusWidget(FocusableWidget.ABOUT)
      },
      preventClose: true,
    },

}
Schermata 2022-03-22 alle 19 12 55
ospfranco commented 2 years ago

ah, well, that will not work, hydrate only runs once and you cannot use hooks outside components, but this is somewhat minor, I'll take care of it another day