Skip to content

next-gen-gui: Add button to restore default theme - #7433

Merged
calmh merged 4 commits into
syncthing:mainfrom
calmh:ngfallback
Mar 8, 2021
Merged

calmh merged 4 commits into
syncthing:mainfrom
calmh:ngfallback

Conversation

@calmh

@calmh calmh commented Mar 5, 2021 •

Copy link
Copy Markdown
Member

This adds a button in the top right that changes the config back to the
default theme.

Code wise, it takes the header that was previously a part of the
dashboard component and moves it to the app component, and then adds the
button there. Possibly the header should be a component of it's own, but
that's more of refactor that can happen separately I think.

The config change uses the new config API to just patch the relevant
setting.

I'm not going an automatic reload because 1) I don't want to figure out
how to do it correctly and 2) this doesn't work reliably anyway, as
for example the current gen GUI does a reload and ends up with
connection refused as the API service is still reloading...

Screen Shot 2021-03-05 at 08 49 33

Screen Shot 2021-03-05 at 08 49 37

calmh added 4 commits March 5, 2021 08:50
This adds a button in the top right that changes the config back to the
default theme.

Code wise, it takes the header that was previously a part of the
dashboard component and moves it to the app component, and then adds the
button there. Possibly the header should be a component of it's own, but
that's more of refactor that can happen separately I think.

The config change uses the new config API to just patch the relevant
setting.

I'm not going an automatic reload because 1) I don't want to figure out
how to do it correctly and 2) this doesn't work reliably anyway, as
for example the current gen GUI does a reload and ends up with
connection refused as the API service is still reloading...
@calmh
calmh merged commit 22e4464 into syncthing:main Mar 8, 2021
@st-release st-release added this to the v1.15.0 milestone Mar 9, 2021
calmh added a commit to calmh/syncthing that referenced this pull request Mar 11, 2021
* main:
  build: Update notify (syncthing#7444)
  next-gen-gui: Add button to restore default theme (syncthing#7433)
  lib/protocol: Optimize FileKey (syncthing#7440)
  cmd/syncthing, etc: Consistent failure restart backoff (syncthing#7439)
  lib: Return error from db.FileSet.Snapshot (fixes syncthing#7419, ref syncthing#5907) (syncthing#7424)
@calmh
calmh deleted the ngfallback branch March 13, 2021 13:13
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants