diff options
author | silverwind <me@silverwind.io> | 2023-09-19 00:05:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-19 00:05:31 +0200 |
commit | 8099238618f6573f1eb5cfeeb0902b641e7121ab (patch) | |
tree | 34b6425a3838f52d56c052f10eb2b2328c680c37 /templates/repo/migrate | |
parent | Fix wrong xorm get usage on migration (#27111) (diff) | |
download | forgejo-8099238618f6573f1eb5cfeeb0902b641e7121ab.tar.xz forgejo-8099238618f6573f1eb5cfeeb0902b641e7121ab.zip |
Change green buttons to primary color (#27099)
I think it's better if the primary actions have primary color instead of
green which fits better into the overall single-color UI design. This PR
currently replaces every green button with primary:
<img width="141" alt="Screenshot 2023-09-16 at 14 07 59"
src="https://github.com/go-gitea/gitea/assets/115237/843c1e50-4fb2-4ec6-84ba-0efb9472dcbe">
<img width="161" alt="Screenshot 2023-09-16 at 14 07 51"
src="https://github.com/go-gitea/gitea/assets/115237/9442195a-a3b2-4a42-b262-8377d6f5c0d1">
Modal actions now use uncolored/primary instead of previous green/red
colors. I also removed the box-shadow on all basic buttons:
<img width="259" alt="Screenshot 2023-09-16 at 14 16 39"
src="https://github.com/go-gitea/gitea/assets/115237/5beea529-127a-44b0-8d4c-afa7b034a490">
<img width="261" alt="Screenshot 2023-09-16 at 14 17 42"
src="https://github.com/go-gitea/gitea/assets/115237/4757f7b2-4d46-49bc-a797-38bb28437b88">
The change currently includes the "Merge PR" button, for which we might
want to make an exception to match the icon color there:
<img width="442" alt="Screenshot 2023-09-16 at 14 33 53"
src="https://github.com/go-gitea/gitea/assets/115237/993ac1a5-c94d-4895-b76c-0d872181a70b">
Diffstat (limited to 'templates/repo/migrate')
-rw-r--r-- | templates/repo/migrate/codebase.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/git.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/gitbucket.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/gitea.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/github.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/gitlab.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/gogs.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/migrating.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/migrate/onedev.tmpl | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/templates/repo/migrate/codebase.tmpl b/templates/repo/migrate/codebase.tmpl index db607eebb4..394e7c2ecf 100644 --- a/templates/repo/migrate/codebase.tmpl +++ b/templates/repo/migrate/codebase.tmpl @@ -104,7 +104,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/git.tmpl b/templates/repo/migrate/git.tmpl index 42ae642d26..1e449ae30e 100644 --- a/templates/repo/migrate/git.tmpl +++ b/templates/repo/migrate/git.tmpl @@ -78,7 +78,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/gitbucket.tmpl b/templates/repo/migrate/gitbucket.tmpl index 372df0c2db..aa269e561c 100644 --- a/templates/repo/migrate/gitbucket.tmpl +++ b/templates/repo/migrate/gitbucket.tmpl @@ -120,7 +120,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/gitea.tmpl b/templates/repo/migrate/gitea.tmpl index 8022f63dc5..e4d8c62734 100644 --- a/templates/repo/migrate/gitea.tmpl +++ b/templates/repo/migrate/gitea.tmpl @@ -116,7 +116,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/github.tmpl b/templates/repo/migrate/github.tmpl index 0ccad3a3ea..d3f0e0b8bd 100644 --- a/templates/repo/migrate/github.tmpl +++ b/templates/repo/migrate/github.tmpl @@ -118,7 +118,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/gitlab.tmpl b/templates/repo/migrate/gitlab.tmpl index af20fa38e2..e055cce19e 100644 --- a/templates/repo/migrate/gitlab.tmpl +++ b/templates/repo/migrate/gitlab.tmpl @@ -115,7 +115,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/gogs.tmpl b/templates/repo/migrate/gogs.tmpl index aeead61e41..2d66800608 100644 --- a/templates/repo/migrate/gogs.tmpl +++ b/templates/repo/migrate/gogs.tmpl @@ -118,7 +118,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> diff --git a/templates/repo/migrate/migrating.tmpl b/templates/repo/migrate/migrating.tmpl index d1bdc5a90f..6effa05f97 100644 --- a/templates/repo/migrate/migrating.tmpl +++ b/templates/repo/migrate/migrating.tmpl @@ -38,7 +38,7 @@ {{if .Failed}} <button class="ui basic red show-modal button" data-modal="#delete-repo-modal">{{.locale.Tr "repo.settings.delete"}}</button> {{else}} - <button class="ui basic red show-modal button" data-modal="#cancel-repo-modal">{{.locale.Tr "cancel"}}</button> + <button class="ui basic show-modal button" data-modal="#cancel-repo-modal">{{.locale.Tr "cancel"}}</button> {{end}} <button id="repo_migrating_retry" data-migrating-task-retry-url="{{.Link}}/settings/migrate/retry" class="ui basic button gt-hidden">{{.locale.Tr "retry"}}</button> </div> diff --git a/templates/repo/migrate/onedev.tmpl b/templates/repo/migrate/onedev.tmpl index f5ba11ab06..818b23fddc 100644 --- a/templates/repo/migrate/onedev.tmpl +++ b/templates/repo/migrate/onedev.tmpl @@ -104,7 +104,7 @@ <div class="inline field"> <label></label> - <button class="ui green button"> + <button class="ui primary button"> {{.locale.Tr "repo.migrate_repo"}} </button> </div> |