From dca01e6817b8039eef20edbbb0283e5ceea202cf Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 2 Aug 2023 09:09:12 +0200 Subject: [PATCH] Use consistent woodpecker color scheme (#2003) Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1079 What do you think about using a consistent `woodpecker` color scheme? Right now, the `lime` color scheme from windicss is used that does not really fit the primary color used for the documentation website. I have used the primary color `#4CAF50` from the docs and created a color palette with https://palettte.app/:
JSON source ```Json [ { "paletteName": "New Palette", "swatches": [ { "name": "New Swatch", "color": "166E30" }, { "name": "New Swatch", "color": "248438" }, { "name": "New Swatch", "color": "369943" }, { "name": "New Swatch", "color": "4CAF50" }, { "name": "New Swatch", "color": "68C464" }, { "name": "New Swatch", "color": "8AD97F" } ] } ] ```
![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/a254f1e0-ce17-43a9-9e8b-72252296fd6f) I have added this color scheme to the windicss config and replaced the use of `lime` in the UI. While `woodpecker-300` would be the primary color that is used for the docs, I currently use `woodpecke-400` as primary color for the UI to fix some contrast issues. ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/7bf751e1-f2a6-481c-bee7-a27d27cf8adb) ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/e5673dc7-81c1-4fd4-bef9-14494bc5aa27) What do you think? If you would like to stay with the current colors, that's fine for me, I can just use the custom CSS feature in this case. --------- Co-authored-by: 6543 <6543@obermui.de> --- .gitignore | 2 +- web/package.json | 1 + web/pnpm-lock.yaml | 7 + web/src/App.vue | 2 +- web/src/assets/locales/en.json | 2 +- .../admin/settings/AdminAgentsTab.vue | 18 +- .../admin/settings/AdminQueueTab.vue | 22 +- .../admin/settings/AdminSecretsTab.vue | 6 +- .../admin/settings/AdminUsersTab.vue | 16 +- .../admin/settings/queue/AdminQueueStats.vue | 12 +- web/src/components/atomic/Badge.vue | 7 +- web/src/components/atomic/Button.vue | 19 +- web/src/components/atomic/DocsLink.vue | 2 +- web/src/components/atomic/ListItem.vue | 6 +- web/src/components/atomic/Warning.vue | 2 +- web/src/components/form/Checkbox.vue | 8 +- web/src/components/form/InputField.vue | 4 +- web/src/components/form/RadioField.vue | 8 +- web/src/components/form/SelectField.vue | 8 +- web/src/components/form/TextField.vue | 8 +- web/src/components/layout/Panel.vue | 8 +- web/src/components/layout/header/Navbar.vue | 8 +- .../layout/popups/DeployPipelinePopup.vue | 6 +- .../layout/popups/ManualPipelinePopup.vue | 4 +- web/src/components/layout/scaffold/Header.vue | 8 +- web/src/components/layout/scaffold/Tabs.vue | 4 +- .../components/org/settings/OrgSecretsTab.vue | 6 +- .../pipeline-feed/PipelineFeedItem.vue | 2 +- .../pipeline-feed/PipelineFeedSidebar.vue | 6 +- .../components/repo/pipeline/PipelineItem.vue | 22 +- .../components/repo/pipeline/PipelineList.vue | 2 +- .../components/repo/pipeline/PipelineLog.vue | 37 ++-- .../repo/pipeline/PipelineRunningIcon.vue | 4 +- .../repo/pipeline/PipelineStatusIcon.vue | 8 +- .../repo/pipeline/PipelineStepList.vue | 21 +- .../components/repo/settings/ActionsTab.vue | 14 +- web/src/components/repo/settings/BadgeTab.vue | 13 +- web/src/components/repo/settings/CronTab.vue | 20 +- .../components/repo/settings/GeneralTab.vue | 13 +- .../repo/settings/RegistriesTab.vue | 16 +- .../components/repo/settings/SecretsTab.vue | 6 +- web/src/components/secrets/SecretList.vue | 20 +- web/src/compositions/useDarkMode.ts | 6 +- web/src/style.css | 110 +++++++++- web/src/views/Login.vue | 12 +- web/src/views/RepoAdd.vue | 4 +- web/src/views/Repos.vue | 2 +- web/src/views/User.vue | 34 +-- web/src/views/org/OrgRepos.vue | 4 +- web/src/views/repo/RepoBranch.vue | 2 +- web/src/views/repo/RepoBranches.vue | 2 +- web/src/views/repo/RepoPullRequest.vue | 2 +- web/src/views/repo/RepoPullRequests.vue | 8 +- web/src/views/repo/pipeline/Pipeline.vue | 12 +- .../repo/pipeline/PipelineChangedFiles.vue | 2 +- .../views/repo/pipeline/PipelineWrapper.vue | 2 +- web/windi.config.ts | 200 +++++++++++++++++- 57 files changed, 561 insertions(+), 249 deletions(-) diff --git a/.gitignore b/.gitignore index 5b6c87da9..c196ac54c 100644 --- a/.gitignore +++ b/.gitignore @@ -27,6 +27,7 @@ web/dist/** web/node_modules/ web/*.log web/.env +.pnpm-store ### Docker ### docker-compose.yml @@ -36,7 +37,6 @@ docker-compose.yml *.sqlite *.out /.env -/.pnpm-store extras/ /build/ /dist/ diff --git a/web/package.json b/web/package.json index f7aada656..7d7d5b2f5 100644 --- a/web/package.json +++ b/web/package.json @@ -57,6 +57,7 @@ "eslint-plugin-vue": "^9.15.1", "eslint-plugin-vue-scoped-css": "^2.5.0", "prettier": "^2.8.8", + "tinycolor2": "^1.6.0", "typescript": "5.0.3", "unplugin-icons": "^0.16.3", "unplugin-vue-components": "^0.24.1", diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 59da7ee62..f06dce3aa 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -124,6 +124,9 @@ devDependencies: prettier: specifier: ^2.8.8 version: 2.8.8 + tinycolor2: + specifier: ^1.6.0 + version: 1.6.0 typescript: specifier: 5.0.3 version: 5.0.3 @@ -3191,6 +3194,10 @@ packages: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true + /tinycolor2@1.6.0: + resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==} + dev: true + /to-fast-properties@2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} diff --git a/web/src/App.vue b/web/src/App.vue index 7636425ff..98e0ffb41 100644 --- a/web/src/App.vue +++ b/web/src/App.vue @@ -1,5 +1,5 @@