From 2b07b3a873e5693556b56dd310944bf744f7d103 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 26 Sep 2018 18:59:37 +0900 Subject: [PATCH 01/72] wip --- src/client/app/app.vue | 7 ++- src/client/app/boot.js | 17 ++++--- src/client/app/common/scripts/theme.ts | 63 ++++++++++++++++++++++++++ src/client/app/desktop/style.styl | 27 +++-------- src/client/app/init.ts | 39 ---------------- src/client/theme/dark.json | 10 ++++ src/client/theme/light.json | 10 ++++ 7 files changed, 103 insertions(+), 70 deletions(-) create mode 100644 src/client/app/common/scripts/theme.ts create mode 100644 src/client/theme/dark.json create mode 100644 src/client/theme/light.json diff --git a/src/client/app/app.vue b/src/client/app/app.vue index e639c9f9ac..d8cd4f0796 100644 --- a/src/client/app/app.vue +++ b/src/client/app/app.vue @@ -5,6 +5,8 @@ diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index e6267ed204..2e3ffd171b 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -216,7 +216,7 @@ export default Vue.extend({ diff --git a/src/client/app/desktop/views/components/ui.header.search.vue b/src/client/app/desktop/views/components/ui.header.search.vue index 9a36e52fcc..d5794dc882 100644 --- a/src/client/app/desktop/views/components/ui.header.search.vue +++ b/src/client/app/desktop/views/components/ui.header.search.vue @@ -28,7 +28,7 @@ export default Vue.extend({ diff --git a/src/client/app/mobile/views/components/dialog.vue b/src/client/app/mobile/views/components/dialog.vue index 6a0d74c752..fff44a28c3 100644 --- a/src/client/app/mobile/views/components/dialog.vue +++ b/src/client/app/mobile/views/components/dialog.vue @@ -91,7 +91,7 @@ export default Vue.extend({ diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index 68be9f8ac4..6daf375ed2 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -223,7 +223,7 @@ export default Vue.extend({ diff --git a/src/client/app/mobile/views/pages/notifications.vue b/src/client/app/mobile/views/pages/notifications.vue index bddcd457bb..ce33332faf 100644 --- a/src/client/app/mobile/views/pages/notifications.vue +++ b/src/client/app/mobile/views/pages/notifications.vue @@ -34,7 +34,7 @@ export default Vue.extend({ diff --git a/src/client/app/common/views/components/reaction-picker.vue b/src/client/app/common/views/components/reaction-picker.vue index a86850ac7c..13e8cf1f07 100644 --- a/src/client/app/common/views/components/reaction-picker.vue +++ b/src/client/app/common/views/components/reaction-picker.vue @@ -210,11 +210,9 @@ export default Vue.extend({ diff --git a/src/client/app/common/views/components/visibility-chooser.vue b/src/client/app/common/views/components/visibility-chooser.vue index d0a892fd56..5faf09fa11 100644 --- a/src/client/app/common/views/components/visibility-chooser.vue +++ b/src/client/app/common/views/components/visibility-chooser.vue @@ -145,7 +145,7 @@ root(isDark) opacity 0 > .popover - $bgcolor = isDark ? #2c303c : #fff + $bgcolor = var(--popupBg) position absolute z-index 10001 width 240px diff --git a/src/client/app/desktop/views/components/home.vue b/src/client/app/desktop/views/components/home.vue index 3d77da52d9..a07af02ea6 100644 --- a/src/client/app/desktop/views/components/home.vue +++ b/src/client/app/desktop/views/components/home.vue @@ -280,7 +280,7 @@ root(isDark) width 100% height 48px color isDark ? #fff : #000 - background isDark ? #313543 : #f7f7f7 + background var(--desktopHeaderBg) box-shadow 0 1px 1px rgba(#000, 0.075) > a diff --git a/src/client/app/desktop/views/components/ui.header.vue b/src/client/app/desktop/views/components/ui.header.vue index bec0ee37ad..264da8bef8 100644 --- a/src/client/app/desktop/views/components/ui.header.vue +++ b/src/client/app/desktop/views/components/ui.header.vue @@ -151,7 +151,7 @@ root(isDark) z-index 1000 width 100% height 48px - background isDark ? #313543 : #f7f7f7 + background var(--desktopHeaderBg) > .main z-index 1001 diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index cf9306558b..18b674fef4 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -1,16 +1,22 @@ { "meta": { + "id": "9978f7f9-5616-44fd-a704-cc5985efdd63", "name": "Dark" }, "primary": "#fb4e4e", "primaryForeground": "#fff", - "bg": "#191B22", - "scrollbarTrack": "#282C37", + "bg": "#191b22", + "scrollbarTrack": "#282c37", "scrollbarHandle": "#454954", "scrollbarHandleHover": "#535660", "face": "#282c37", "faceHeader": "#313543", "faceDivider": "rgba(0, 0, 0, 0.3)", + "popupBg": "#2c303c", + "popupFg": "#d6dce2", + "reactionPickerButtonHoverBg": "rgba(0, 0, 0, 0.18)", + "modalBackdrop": "rgba(0, 0, 0, 0.5)", + "desktopHeaderBg": "#313543", "mobileSignedInAsBg": "#273c34", "mobileSignedInAsFg": "#49ab63", "mobileSignoutBg": "#652222", diff --git a/src/client/theme/halloween.json b/src/client/theme/halloween.json new file mode 100644 index 0000000000..d38bd849ed --- /dev/null +++ b/src/client/theme/halloween.json @@ -0,0 +1,17 @@ +{ + "meta": { + "id": "42e4f09b-67d5-498c-af7d-29faa54745b0", + "name": "Halloween", + "inherit": "9978f7f9-5616-44fd-a704-cc5985efdd63" + }, + "primary": "#fb8d4e", + "primaryForeground": "#fff", + "bg": "#1b1a35", + "face": "#282c37", + "faceHeader": "#313543", + "faceDivider": "rgba(0, 0, 0, 0.3)", + "popupBg": "#2c303c", + "popupFg": "#d6dce2", + "reactionPickerButtonHoverBg": "rgba(0, 0, 0, 0.18)", + "desktopHeaderBg": "#0c0b19" +} diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 64ebd8e293..b012629faf 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -1,5 +1,6 @@ { "meta": { + "id": "406cfea3-a4e7-486c-9057-30ede1353c3f", "name": "Light" }, "primary": "#fb4e4e", @@ -11,6 +12,11 @@ "face": "#fff", "faceHeader": "#fff", "faceDivider": "rgba(0, 0, 0, 0.082)", + "popupBg": "#fff", + "popupFg": "#586069", + "reactionPickerButtonHoverBg": "#eee", + "modalBackdrop": "rgba(0, 0, 0, 0.1)", + "desktopHeaderBg": "#f7f7f7", "mobileSignedInAsBg": "#fcfff5", "mobileSignedInAsFg": "#2c662d", "mobileSignoutBg": "#fff6f5", From dabda21eb7e67d098c789f22db22014143798e1e Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 01:44:05 +0900 Subject: [PATCH 09/72] wip --- .../common/views/components/autocomplete.vue | 22 ++++++------------- src/client/theme/dark.json | 6 ++++- src/client/theme/light.json | 6 ++++- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/client/app/common/views/components/autocomplete.vue b/src/client/app/common/views/components/autocomplete.vue index bba6f4f7b2..bc0120c9ab 100644 --- a/src/client/app/common/views/components/autocomplete.vue +++ b/src/client/app/common/views/components/autocomplete.vue @@ -259,9 +259,7 @@ export default Vue.extend({ diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index 18b674fef4..5a8e1ce8f6 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -14,8 +14,12 @@ "faceDivider": "rgba(0, 0, 0, 0.3)", "popupBg": "#2c303c", "popupFg": "#d6dce2", - "reactionPickerButtonHoverBg": "rgba(0, 0, 0, 0.18)", "modalBackdrop": "rgba(0, 0, 0, 0.5)", + + "autocompleteItemHoverBg": "rgba(255, 255, 255, 0.1)", + "autocompleteItemText": "rgba(255, 255, 255, 0.8)", + "autocompleteItemTextSub": "rgba(255, 255, 255, 0.3)", + "reactionPickerButtonHoverBg": "rgba(255, 255, 255, 0.18)", "desktopHeaderBg": "#313543", "mobileSignedInAsBg": "#273c34", "mobileSignedInAsFg": "#49ab63", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index b012629faf..4ae10b5cad 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -14,8 +14,12 @@ "faceDivider": "rgba(0, 0, 0, 0.082)", "popupBg": "#fff", "popupFg": "#586069", - "reactionPickerButtonHoverBg": "#eee", "modalBackdrop": "rgba(0, 0, 0, 0.1)", + + "autocompleteItemHoverBg": "rgba(0, 0, 0, 0.1)", + "autocompleteItemText": "rgba(0, 0, 0, 0.8)", + "autocompleteItemTextSub": "rgba(0, 0, 0, 0.3)", + "reactionPickerButtonHoverBg": "#eee", "desktopHeaderBg": "#f7f7f7", "mobileSignedInAsBg": "#fcfff5", "mobileSignedInAsFg": "#2c662d", From 3304cc106ec75c2bfceeb47336afc250fc392c86 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 01:54:10 +0900 Subject: [PATCH 10/72] wip --- src/client/app/common/views/components/avatar.vue | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/client/app/common/views/components/avatar.vue b/src/client/app/common/views/components/avatar.vue index a2b0fc6bd3..ca09af87de 100644 --- a/src/client/app/common/views/components/avatar.vue +++ b/src/client/app/common/views/components/avatar.vue @@ -58,6 +58,9 @@ export default Vue.extend({ }; } }, + mounted() { + this.$el.style.color = `rgb(${this.user.avatarColor.slice(0, 3).join(',')})`; + }, methods: { onClick(e) { this.$emit('click', e); @@ -67,8 +70,7 @@ export default Vue.extend({ From 4dde54e344773d6e6a39713453292d3f128df3f9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 01:58:37 +0900 Subject: [PATCH 11/72] Clean up --- .../app/desktop/views/pages/deck/deck.note.vue | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/client/app/desktop/views/pages/deck/deck.note.vue b/src/client/app/desktop/views/pages/deck/deck.note.vue index 04ddcd488d..a02636a42d 100644 --- a/src/client/app/desktop/views/pages/deck/deck.note.vue +++ b/src/client/app/desktop/views/pages/deck/deck.note.vue @@ -314,19 +314,6 @@ root(isDark) > .text margin-right 8px - > .toggle - display inline-block - padding 4px 8px - font-size 0.7em - color isDark ? #393f4f : #fff - background isDark ? #687390 : #b1b9c1 - border-radius 2px - cursor pointer - user-select none - - &:hover - background isDark ? #707b97 : #bbc4ce - > .content > .text From 97d68d7b31d4db1b0cdd07a0196c63d4493a621f Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 02:02:07 +0900 Subject: [PATCH 12/72] example commit --- .../app/common/views/components/cw-button.vue | 14 ++++---------- src/client/theme/dark.json | 3 +++ src/client/theme/light.json | 3 +++ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/client/app/common/views/components/cw-button.vue b/src/client/app/common/views/components/cw-button.vue index 06087edc93..79917f82ab 100644 --- a/src/client/app/common/views/components/cw-button.vue +++ b/src/client/app/common/views/components/cw-button.vue @@ -22,23 +22,17 @@ export default Vue.extend({ diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index 5a8e1ce8f6..14caf19224 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -19,6 +19,9 @@ "autocompleteItemHoverBg": "rgba(255, 255, 255, 0.1)", "autocompleteItemText": "rgba(255, 255, 255, 0.8)", "autocompleteItemTextSub": "rgba(255, 255, 255, 0.3)", + "cwButtonBg": "#687390", + "cwButtonFg": "#393f4f", + "cwButtonHoverBg": "#707b97", "reactionPickerButtonHoverBg": "rgba(255, 255, 255, 0.18)", "desktopHeaderBg": "#313543", "mobileSignedInAsBg": "#273c34", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 4ae10b5cad..7a039ef294 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -19,6 +19,9 @@ "autocompleteItemHoverBg": "rgba(0, 0, 0, 0.1)", "autocompleteItemText": "rgba(0, 0, 0, 0.8)", "autocompleteItemTextSub": "rgba(0, 0, 0, 0.3)", + "cwButtonBg": "#b1b9c1", + "cwButtonFg": "#fff", + "cwButtonHoverBg": "#bbc4ce", "reactionPickerButtonHoverBg": "#eee", "desktopHeaderBg": "#f7f7f7", "mobileSignedInAsBg": "#fcfff5", From 15a8b4c6e56c3a5e055cc007275b28bb8841e319 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 02:18:54 +0900 Subject: [PATCH 13/72] wip --- .../common/views/components/note-header.vue | 24 +++++++------------ src/client/theme/dark.json | 7 ++++++ src/client/theme/light.json | 7 ++++++ 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/client/app/common/views/components/note-header.vue b/src/client/app/common/views/components/note-header.vue index 48dfae5f84..8192d88412 100644 --- a/src/client/app/common/views/components/note-header.vue +++ b/src/client/app/common/views/components/note-header.vue @@ -42,9 +42,7 @@ export default Vue.extend({ diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index 14caf19224..aeaf547b72 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -16,6 +16,13 @@ "popupFg": "#d6dce2", "modalBackdrop": "rgba(0, 0, 0, 0.5)", + "noteHeaderName": "#fff", + "noteHeaderBadgeFg": "#758188", + "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.25)", + "noteHeaderAdminFg": "#f15f71", + "noteHeaderAdminBg": "#5d282e", + "noteHeaderAcct": "#606984", + "noteHeaderInfo": "#606984", "autocompleteItemHoverBg": "rgba(255, 255, 255, 0.1)", "autocompleteItemText": "rgba(255, 255, 255, 0.8)", "autocompleteItemTextSub": "rgba(255, 255, 255, 0.3)", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 7a039ef294..d4803389da 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -16,6 +16,13 @@ "popupFg": "#586069", "modalBackdrop": "rgba(0, 0, 0, 0.1)", + "noteHeaderName": "#627079", + "noteHeaderBadgeFg": "#aaa", + "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.05)", + "noteHeaderAdminFg": "#f15f71", + "noteHeaderAdminBg": "#5d282e", + "noteHeaderAcct": "#ccc", + "noteHeaderInfo": "#c0c0c0", "autocompleteItemHoverBg": "rgba(0, 0, 0, 0.1)", "autocompleteItemText": "rgba(0, 0, 0, 0.8)", "autocompleteItemTextSub": "rgba(0, 0, 0, 0.3)", From 49f8cfb0db79653caf0a1cb158041d51856912ef Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 02:35:13 +0900 Subject: [PATCH 14/72] wip --- .../app/desktop/views/components/notes.vue | 18 +++++------------- src/client/theme/dark.json | 4 ++++ src/client/theme/light.json | 4 ++++ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index d0148eef58..31b3a3ab18 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -216,9 +216,7 @@ export default Vue.extend({ diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index aeaf547b72..b3d233d45f 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -15,6 +15,10 @@ "popupBg": "#2c303c", "popupFg": "#d6dce2", "modalBackdrop": "rgba(0, 0, 0, 0.5)", + "dateDividerBg": "#242731", + "dateDividerFg": "#666b79", + "footerButtonHover": "#2e3440", + "footerButtonActive": "#21242b", "noteHeaderName": "#fff", "noteHeaderBadgeFg": "#758188", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index d4803389da..87f384a200 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -15,6 +15,10 @@ "popupBg": "#fff", "popupFg": "#586069", "modalBackdrop": "rgba(0, 0, 0, 0.1)", + "dateDividerBg": "#fdfdfd", + "dateDividerFg": "#aaa", + "footerButtonHover": "#f5f5f5", + "footerButtonActive": "#eee", "noteHeaderName": "#627079", "noteHeaderBadgeFg": "#aaa", From 1eb6ad58d5699ec22b41265b4b8c687641015109 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 02:46:53 +0900 Subject: [PATCH 15/72] wip --- src/client/app/desktop/views/components/note-detail.vue | 4 ++-- src/client/app/desktop/views/components/notes.note.vue | 4 ++-- src/client/app/desktop/views/pages/deck/deck.note.vue | 4 ++-- src/client/app/mobile/views/components/note-detail.vue | 4 ++-- src/client/app/mobile/views/components/note.vue | 4 ++-- src/client/theme/dark.json | 2 ++ src/client/theme/halloween.json | 2 ++ src/client/theme/light.json | 2 ++ 8 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/client/app/desktop/views/components/note-detail.vue b/src/client/app/desktop/views/components/note-detail.vue index 35eb6ac45d..5e7c8b42ca 100644 --- a/src/client/app/desktop/views/components/note-detail.vue +++ b/src/client/app/desktop/views/components/note-detail.vue @@ -263,8 +263,8 @@ root(isDark) border-bottom 1px solid isDark ? #1c2023 : #eef0f2 > .renote - color #9dbb00 - background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) + color var(--renoteText) + background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%) > p margin 0 diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index 4f2b0241e8..17f7e2235a 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -357,8 +357,8 @@ root(isDark) padding 16px 32px 8px 32px line-height 28px white-space pre - color #9dbb00 - background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) + color var(--renoteText) + background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%) .avatar display inline-block diff --git a/src/client/app/desktop/views/pages/deck/deck.note.vue b/src/client/app/desktop/views/pages/deck/deck.note.vue index a02636a42d..f1c4a5979a 100644 --- a/src/client/app/desktop/views/pages/deck/deck.note.vue +++ b/src/client/app/desktop/views/pages/deck/deck.note.vue @@ -246,8 +246,8 @@ root(isDark) padding 8px 16px 0 16px line-height 28px white-space pre - color #9dbb00 - background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) + color var(--renoteText) + background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%) .avatar flex-shrink 0 diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index f0a91e82d4..c56d10093d 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -266,8 +266,8 @@ root(isDark) border-bottom 1px solid isDark ? #1c2023 : #eef0f2 > .renote - color #9dbb00 - background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) + color var(--renoteText) + background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%) > p margin 0 diff --git a/src/client/app/mobile/views/components/note.vue b/src/client/app/mobile/views/components/note.vue index a8b733fae7..8b7c559997 100644 --- a/src/client/app/mobile/views/components/note.vue +++ b/src/client/app/mobile/views/components/note.vue @@ -256,8 +256,8 @@ root(isDark) padding 8px 16px line-height 28px white-space pre - color #9dbb00 - background isDark ? linear-gradient(to bottom, #314027 0%, #282c37 100%) : linear-gradient(to bottom, #edfde2 0%, #fff 100%) + color var(--renoteText) + background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%) @media (min-width 500px) padding 16px diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index b3d233d45f..533910de76 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -14,6 +14,8 @@ "faceDivider": "rgba(0, 0, 0, 0.3)", "popupBg": "#2c303c", "popupFg": "#d6dce2", + "renoteGradient": "#314027", + "renoteText": "#9dbb00", "modalBackdrop": "rgba(0, 0, 0, 0.5)", "dateDividerBg": "#242731", "dateDividerFg": "#666b79", diff --git a/src/client/theme/halloween.json b/src/client/theme/halloween.json index d38bd849ed..18d214d041 100644 --- a/src/client/theme/halloween.json +++ b/src/client/theme/halloween.json @@ -12,6 +12,8 @@ "faceDivider": "rgba(0, 0, 0, 0.3)", "popupBg": "#2c303c", "popupFg": "#d6dce2", + "renoteGradient": "#5d2d1a", + "renoteText": "#ff6c00", "reactionPickerButtonHoverBg": "rgba(0, 0, 0, 0.18)", "desktopHeaderBg": "#0c0b19" } diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 87f384a200..df85fb973d 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -14,6 +14,8 @@ "faceDivider": "rgba(0, 0, 0, 0.082)", "popupBg": "#fff", "popupFg": "#586069", + "renoteGradient": "#edfde2", + "renoteText": "#9dbb00", "modalBackdrop": "rgba(0, 0, 0, 0.1)", "dateDividerBg": "#fdfdfd", "dateDividerFg": "#aaa", From 0ef64a6d0b7f95c2427536feee657164b759d0d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 11:55:17 +0900 Subject: [PATCH 16/72] wip --- .../views/components/welcome-timeline.vue | 2 +- .../desktop/views/components/note-detail.vue | 36 +++++++++---------- .../views/components/notes.note.sub.vue | 2 +- .../desktop/views/components/notes.note.vue | 14 ++++---- .../views/pages/deck/deck.note.sub.vue | 2 +- .../desktop/views/pages/deck/deck.note.vue | 2 +- .../mobile/views/components/note-detail.vue | 22 ++++++------ .../app/mobile/views/components/note.sub.vue | 2 +- .../app/mobile/views/components/note.vue | 2 +- src/client/theme/dark.json | 7 ++++ src/client/theme/halloween.json | 6 ++-- src/client/theme/light.json | 7 ++++ 12 files changed, 57 insertions(+), 47 deletions(-) diff --git a/src/client/app/common/views/components/welcome-timeline.vue b/src/client/app/common/views/components/welcome-timeline.vue index 938ab602f0..ca1b6eb928 100644 --- a/src/client/app/common/views/components/welcome-timeline.vue +++ b/src/client/app/common/views/components/welcome-timeline.vue @@ -137,7 +137,7 @@ root(isDark) overflow hidden font-weight bold text-overflow ellipsis - color isDark ? #fff : #627079 + color var(--noteHeaderName) > .username margin 0 .5em 0 0 diff --git a/src/client/app/desktop/views/components/note-detail.vue b/src/client/app/desktop/views/components/note-detail.vue index 5e7c8b42ca..9222d8fab9 100644 --- a/src/client/app/desktop/views/components/note-detail.vue +++ b/src/client/app/desktop/views/components/note-detail.vue @@ -225,8 +225,6 @@ export default Vue.extend({ diff --git a/src/client/app/common/views/components/ui/button.vue b/src/client/app/common/views/components/ui/button.vue index ae59214038..c411f0f5c9 100644 --- a/src/client/app/common/views/components/ui/button.vue +++ b/src/client/app/common/views/components/ui/button.vue @@ -32,8 +32,6 @@ export default Vue.extend({ diff --git a/src/client/app/desktop/views/components/settings.profile.vue b/src/client/app/desktop/views/components/settings.profile.vue index d47b5b224b..9dd2798557 100644 --- a/src/client/app/desktop/views/components/settings.profile.vue +++ b/src/client/app/desktop/views/components/settings.profile.vue @@ -24,13 +24,13 @@

%i18n:@locked-account%

- + %i18n:@is-locked%

%i18n:@other%

- - - + %i18n:@is-bot% + %i18n:@is-cat% + %i18n:common.always-mark-nsfw%
diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 4b8ee3c9cd..4efaa75c4b 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -30,7 +30,7 @@
%i18n:@note-visibility%
- + %i18n:@remember-note-visibility%
%i18n:@default-note-visibility%
@@ -59,30 +59,30 @@
- - - - - - - - - + %i18n:@dark-mode% + %i18n:@use-shadow% + %i18n:@rounded-corners% + %i18n:@circle-icons% + %i18n:common.reduce-motion% + %i18n:@contrasted-acct% + %i18n:common.show-full-acct% + %i18n:@gradient-window-header% + %i18n:common.i-like-sushi%
- - - - - - - - + %i18n:@post-form-on-timeline% + %i18n:@suggest-recent-hashtags% + %i18n:@show-clock-on-header% + %i18n:common.always-show-nsfw% + %i18n:@show-reply-target% + %i18n:@show-my-renotes% + %i18n:@show-renoted-my-notes% + %i18n:@show-local-renotes% %i18n:@show-maps-desc% - - - + %i18n:common.disable-animated-mfm% + %i18n:common.show-reversi-board-labels% + %i18n:common.use-contrast-reversi-stones%
@@ -102,7 +102,7 @@

%i18n:@mobile%

- + %i18n:@disable-via-mobile%
diff --git a/src/client/app/desktop/views/pages/deck/deck.tl-column.vue b/src/client/app/desktop/views/pages/deck/deck.tl-column.vue index 550b1be628..d245e3ecf5 100644 --- a/src/client/app/desktop/views/pages/deck/deck.tl-column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.tl-column.vue @@ -11,8 +11,8 @@
- - + %i18n:@is-media-only% + %i18n:@is-media-view%
diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index 77a41228d0..a3877093f5 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -1,7 +1,8 @@ { "meta": { "id": "9978f7f9-5616-44fd-a704-cc5985efdd63", - "name": "Dark" + "name": "Dark", + "author": "syuilo" }, "primary": "#fb4e4e", "primaryForeground": "#fff", @@ -28,7 +29,7 @@ "dateDividerFg": "#666b79", "footerButtonHover": "#2e3440", "footerButtonActive": "#21242b", - + "switchTrack": "rgba(255, 255, 255, 0.15)", "noteHeaderName": "#fff", "noteHeaderBadgeFg": "#758188", "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.25)", diff --git a/src/client/theme/halloween.json b/src/client/theme/halloween.json index 7c26fbf6e6..b156eb1aa8 100644 --- a/src/client/theme/halloween.json +++ b/src/client/theme/halloween.json @@ -2,6 +2,7 @@ "meta": { "id": "42e4f09b-67d5-498c-af7d-29faa54745b0", "name": "Halloween", + "author": "syuilo", "inherit": "9978f7f9-5616-44fd-a704-cc5985efdd63" }, "primary": "#fb8d4e", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 28cc71bdb7..7dcf2d3f44 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -1,7 +1,8 @@ { "meta": { "id": "406cfea3-a4e7-486c-9057-30ede1353c3f", - "name": "Light" + "name": "Light", + "author": "syuilo" }, "primary": "#fb4e4e", "primaryForeground": "#fff", @@ -28,7 +29,7 @@ "dateDividerFg": "#aaa", "footerButtonHover": "#f5f5f5", "footerButtonActive": "#eee", - + "switchTrack": "rgba(0, 0, 0, 0.25)", "noteHeaderName": "#627079", "noteHeaderBadgeFg": "#aaa", "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.05)", From 76a25917c03f3bd4e46ff53300f5a1a1fc8a883a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 13:54:53 +0900 Subject: [PATCH 18/72] wip --- src/client/app/desktop/views/components/notes.vue | 4 ++-- src/client/theme/dark.json | 2 -- src/client/theme/light.json | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 31b3a3ab18..84b13ed84e 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -264,9 +264,9 @@ export default Vue.extend({ border-bottom-right-radius 6px &:hover - background var(--footerButtonHover) + box-shadow 0 0 0 100px inset rgba(0, 0, 0, 0.05) &:active - background var(--footerButtonActive) + box-shadow 0 0 0 100px inset rgba(0, 0, 0, 0.1) diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index a3877093f5..c9e9835136 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -27,8 +27,6 @@ "modalBackdrop": "rgba(0, 0, 0, 0.5)", "dateDividerBg": "#242731", "dateDividerFg": "#666b79", - "footerButtonHover": "#2e3440", - "footerButtonActive": "#21242b", "switchTrack": "rgba(255, 255, 255, 0.15)", "noteHeaderName": "#fff", "noteHeaderBadgeFg": "#758188", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 7dcf2d3f44..6aef10d9a6 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -27,8 +27,6 @@ "modalBackdrop": "rgba(0, 0, 0, 0.1)", "dateDividerBg": "#fdfdfd", "dateDividerFg": "#aaa", - "footerButtonHover": "#f5f5f5", - "footerButtonActive": "#eee", "switchTrack": "rgba(0, 0, 0, 0.25)", "noteHeaderName": "#627079", "noteHeaderBadgeFg": "#aaa", From 4fe2f29478fbf81cb21450170b551ed21211a854 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 14:32:48 +0900 Subject: [PATCH 19/72] wip --- .../app/desktop/views/components/calendar.vue | 4 ++-- .../desktop/views/components/note-detail.vue | 18 +++++--------- .../desktop/views/components/note-preview.vue | 2 +- .../views/components/notes.note.sub.vue | 2 +- .../desktop/views/components/notes.note.vue | 6 ++--- .../desktop/views/components/post-form.vue | 8 +++---- .../app/desktop/views/components/timeline.vue | 23 +++++------------- .../views/components/widget-container.vue | 4 ++-- .../desktop/views/pages/deck/deck.column.vue | 4 ++-- .../desktop/views/pages/deck/deck.note.vue | 6 ++--- .../views/pages/deck/deck.notification.vue | 4 ++-- .../mobile/views/components/note-detail.vue | 20 ++++++---------- .../mobile/views/components/note-preview.vue | 2 +- .../app/mobile/views/components/note.sub.vue | 2 +- .../app/mobile/views/components/note.vue | 6 ++--- .../mobile/views/components/notification.vue | 4 ++-- src/client/theme/dark.json | 24 +++++++++++++------ src/client/theme/halloween.json | 2 +- src/client/theme/light.json | 24 +++++++++++++------ 19 files changed, 80 insertions(+), 85 deletions(-) diff --git a/src/client/app/desktop/views/components/calendar.vue b/src/client/app/desktop/views/components/calendar.vue index cd73ab350b..6b753068fa 100644 --- a/src/client/app/desktop/views/components/calendar.vue +++ b/src/client/app/desktop/views/components/calendar.vue @@ -166,10 +166,10 @@ root(isDark) width 42px font-size 0.9em line-height 42px - color isDark ? #9baec8 : #ccc + color var(--faceTextButton) &:hover - color isDark ? #b2c1d5 : #aaa + color var(--faceTextButtonHover) &:active color isDark ? #b2c1d5 : #999 diff --git a/src/client/app/desktop/views/components/note-detail.vue b/src/client/app/desktop/views/components/note-detail.vue index 9222d8fab9..50ad793f0b 100644 --- a/src/client/app/desktop/views/components/note-detail.vue +++ b/src/client/app/desktop/views/components/note-detail.vue @@ -225,7 +225,7 @@ export default Vue.extend({ diff --git a/src/client/app/desktop/views/components/note-preview.vue b/src/client/app/desktop/views/components/note-preview.vue index 6c84165356..f64657fb47 100644 --- a/src/client/app/desktop/views/components/note-preview.vue +++ b/src/client/app/desktop/views/components/note-preview.vue @@ -71,7 +71,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px diff --git a/src/client/app/desktop/views/components/notes.note.sub.vue b/src/client/app/desktop/views/components/notes.note.sub.vue index 13e2991683..70709f8738 100644 --- a/src/client/app/desktop/views/components/notes.note.sub.vue +++ b/src/client/app/desktop/views/components/notes.note.sub.vue @@ -72,7 +72,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index 160de5199d..5daaadb971 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -426,7 +426,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px @@ -439,7 +439,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) >>> .title display block @@ -491,7 +491,7 @@ root(isDark) > * padding 16px - border dashed 1px isDark ? #4e945e : #c0dac6 + border dashed 1px vat(--quoteBorder) border-radius 8px > footer diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index fdd6e75318..5a5f9d63db 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -434,12 +434,10 @@ export default Vue.extend({ diff --git a/src/client/app/desktop/views/components/widget-container.vue b/src/client/app/desktop/views/components/widget-container.vue index d17b9c91d8..156823799f 100644 --- a/src/client/app/desktop/views/components/widget-container.vue +++ b/src/client/app/desktop/views/components/widget-container.vue @@ -72,10 +72,10 @@ root(isDark) width 42px font-size 0.9em line-height 42px - color isDark ? #9baec8 : #ccc + color var(--faceTextButton) &:hover - color isDark ? #b2c1d5 : #aaa + color var(--faceTextButtonHover) &:active color isDark ? #b2c1d5 : #999 diff --git a/src/client/app/desktop/views/pages/deck/deck.column.vue b/src/client/app/desktop/views/pages/deck/deck.column.vue index 1cf8900ee5..fb521db25b 100644 --- a/src/client/app/desktop/views/pages/deck/deck.column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.column.vue @@ -344,10 +344,10 @@ root(isDark) width $header-height line-height $header-height font-size 16px - color isDark ? #9baec8 : #ccc + color var(--faceTextButton) &:hover - color isDark ? #b2c1d5 : #aaa + color var(--faceTextButtonHover) &:active color isDark ? #b2c1d5 : #999 diff --git a/src/client/app/desktop/views/pages/deck/deck.note.vue b/src/client/app/desktop/views/pages/deck/deck.note.vue index ffb284fb42..bdc4368e7b 100644 --- a/src/client/app/desktop/views/pages/deck/deck.note.vue +++ b/src/client/app/desktop/views/pages/deck/deck.note.vue @@ -309,7 +309,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px @@ -321,7 +321,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) >>> .title display block @@ -387,7 +387,7 @@ root(isDark) > * padding 16px - border dashed 1px isDark ? #4e945e : #c0dac6 + border dashed 1px vat(--quoteBorder) border-radius 8px > .app diff --git a/src/client/app/desktop/views/pages/deck/deck.notification.vue b/src/client/app/desktop/views/pages/deck/deck.notification.vue index d0093ff282..ff10ac2aa6 100644 --- a/src/client/app/desktop/views/pages/deck/deck.notification.vue +++ b/src/client/app/desktop/views/pages/deck/deck.notification.vue @@ -146,10 +146,10 @@ root(isDark) font-size 0.9em > .note-preview - color isDark ? #fff : #717171 + color var(--noteText) > .note-ref - color isDark ? #fff : #717171 + color var(--noteText) [data-fa] font-size 1em diff --git a/src/client/app/mobile/views/components/note-detail.vue b/src/client/app/mobile/views/components/note-detail.vue index 472c18088d..ade518b1fc 100644 --- a/src/client/app/mobile/views/components/note-detail.vue +++ b/src/client/app/mobile/views/components/note-detail.vue @@ -223,7 +223,7 @@ export default Vue.extend({ diff --git a/src/client/app/mobile/views/components/note-preview.vue b/src/client/app/mobile/views/components/note-preview.vue index 4c03593a9e..0b3278ff41 100644 --- a/src/client/app/mobile/views/components/note-preview.vue +++ b/src/client/app/mobile/views/components/note-preview.vue @@ -88,7 +88,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px diff --git a/src/client/app/mobile/views/components/note.sub.vue b/src/client/app/mobile/views/components/note.sub.vue index 2f38c9e97d..8c2e3b496d 100644 --- a/src/client/app/mobile/views/components/note.sub.vue +++ b/src/client/app/mobile/views/components/note.sub.vue @@ -95,7 +95,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px diff --git a/src/client/app/mobile/views/components/note.vue b/src/client/app/mobile/views/components/note.vue index 859fc88043..ed175b4f6f 100644 --- a/src/client/app/mobile/views/components/note.vue +++ b/src/client/app/mobile/views/components/note.vue @@ -349,7 +349,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) > .text margin-right 8px @@ -361,7 +361,7 @@ root(isDark) margin 0 padding 0 overflow-wrap break-word - color isDark ? #fff : #717171 + color var(--noteText) >>> .title display block @@ -427,7 +427,7 @@ root(isDark) > * padding 16px - border dashed 1px isDark ? #4e945e : #c0dac6 + border dashed 1px vat(--quoteBorder) border-radius 8px > .app diff --git a/src/client/app/mobile/views/components/notification.vue b/src/client/app/mobile/views/components/notification.vue index ee90c6b46b..7b73012e06 100644 --- a/src/client/app/mobile/views/components/notification.vue +++ b/src/client/app/mobile/views/components/notification.vue @@ -158,10 +158,10 @@ root(isDark) font-size 0.9em > .note-preview - color isDark ? #fff : #717171 + color var(--noteText) > .note-ref - color isDark ? #fff : #717171 + color var(--noteText) [data-fa] font-size 1em diff --git a/src/client/theme/dark.json b/src/client/theme/dark.json index c9e9835136..88bde9d684 100644 --- a/src/client/theme/dark.json +++ b/src/client/theme/dark.json @@ -13,11 +13,22 @@ "face": "#282c37", "faceHeader": "#313543", "faceDivider": "rgba(0, 0, 0, 0.3)", + "faceTextButton": "#9baec8", + "faceTextButtonHover": "#b2c1d5", "popupBg": "#2c303c", "popupFg": "#d6dce2", "subNoteBg": "rgba(0, 0, 0, 0.18)", "renoteGradient": "#314027", "renoteText": "#9dbb00", + "quoteBorder": "#4e945e", + "noteText": "#fff", + "noteHeaderName": "#fff", + "noteHeaderBadgeFg": "#758188", + "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.25)", + "noteHeaderAdminFg": "#f15f71", + "noteHeaderAdminBg": "#5d282e", + "noteHeaderAcct": "#606984", + "noteHeaderInfo": "#606984", "noteActions": "#606984", "noteActionsHover": "#a1a8bf", "noteActionsReplyHover": "#0af", @@ -28,13 +39,6 @@ "dateDividerBg": "#242731", "dateDividerFg": "#666b79", "switchTrack": "rgba(255, 255, 255, 0.15)", - "noteHeaderName": "#fff", - "noteHeaderBadgeFg": "#758188", - "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.25)", - "noteHeaderAdminFg": "#f15f71", - "noteHeaderAdminBg": "#5d282e", - "noteHeaderAcct": "#606984", - "noteHeaderInfo": "#606984", "autocompleteItemHoverBg": "rgba(255, 255, 255, 0.1)", "autocompleteItemText": "rgba(255, 255, 255, 0.8)", "autocompleteItemTextSub": "rgba(255, 255, 255, 0.3)", @@ -43,6 +47,12 @@ "cwButtonHoverBg": "#707b97", "reactionPickerButtonHoverBg": "rgba(255, 255, 255, 0.18)", "desktopHeaderBg": "#313543", + "desktopPostFormBg": "@face", + "desktopPostFormTextareaBg": "rgba(0, 0, 0, 0.25)", + "desktopPostFormTextareaFg": "#fff", + "desktopTimelineHeaderShadow": "rgba(0, 0, 0, 0.15)", + "desktopTimelineSrc": "@faceTextButton", + "desktopTimelineSrcHover": "@faceTextButtonHover", "mobileSignedInAsBg": "#273c34", "mobileSignedInAsFg": "#49ab63", "mobileSignoutBg": "#652222", diff --git a/src/client/theme/halloween.json b/src/client/theme/halloween.json index b156eb1aa8..474fc7ea8f 100644 --- a/src/client/theme/halloween.json +++ b/src/client/theme/halloween.json @@ -8,7 +8,7 @@ "primary": "#fb8d4e", "primaryForeground": "#fff", "bg": "#1b1a35", - "face": "#2e2a3e", + "face": "#322e44", "faceHeader": "#36314e", "dateDividerBg": "#26253c", "popupBg": "#2c303c", diff --git a/src/client/theme/light.json b/src/client/theme/light.json index 6aef10d9a6..3374a62e36 100644 --- a/src/client/theme/light.json +++ b/src/client/theme/light.json @@ -13,11 +13,22 @@ "face": "#fff", "faceHeader": "#fff", "faceDivider": "rgba(0, 0, 0, 0.082)", + "faceTextButton": "#ccc", + "faceTextButtonHover": "#aaa", "popupBg": "#fff", "popupFg": "#586069", "subNoteBg": "rgba(0, 0, 0, 0.01)", "renoteGradient": "#edfde2", "renoteText": "#9dbb00", + "quoteBorder": "#c0dac6", + "noteText": "#717171", + "noteHeaderName": "#627079", + "noteHeaderBadgeFg": "#aaa", + "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.05)", + "noteHeaderAdminFg": "#f15f71", + "noteHeaderAdminBg": "#5d282e", + "noteHeaderAcct": "#ccc", + "noteHeaderInfo": "#c0c0c0", "noteActions": "#ddd", "noteActionsHover": "#444", "noteActionsReplyHover": "#0af", @@ -28,13 +39,6 @@ "dateDividerBg": "#fdfdfd", "dateDividerFg": "#aaa", "switchTrack": "rgba(0, 0, 0, 0.25)", - "noteHeaderName": "#627079", - "noteHeaderBadgeFg": "#aaa", - "noteHeaderBadgeBg": "rgba(0, 0, 0, 0.05)", - "noteHeaderAdminFg": "#f15f71", - "noteHeaderAdminBg": "#5d282e", - "noteHeaderAcct": "#ccc", - "noteHeaderInfo": "#c0c0c0", "autocompleteItemHoverBg": "rgba(0, 0, 0, 0.1)", "autocompleteItemText": "rgba(0, 0, 0, 0.8)", "autocompleteItemTextSub": "rgba(0, 0, 0, 0.3)", @@ -43,6 +47,12 @@ "cwButtonHoverBg": "#bbc4ce", "reactionPickerButtonHoverBg": "#eee", "desktopHeaderBg": "#f7f7f7", + "desktopPostFormBg": "#fff6f6", + "desktopPostFormTextareaBg": "#fff", + "desktopPostFormTextareaFg": "#333", + "desktopTimelineHeaderShadow": "rgba(0, 0, 0, 0.08)", + "desktopTimelineSrc": "#6f7477", + "desktopTimelineSrcHover": "#525a5f", "mobileSignedInAsBg": "#fcfff5", "mobileSignedInAsFg": "#2c662d", "mobileSignoutBg": "#fff6f5", From 7b8a2aef0f9ed4d848d749769fd9dc6774b1e65a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 14:52:10 +0900 Subject: [PATCH 20/72] wip --- locales/ja-JP.yml | 1 - .../app/desktop/views/components/settings.vue | 8 +------- .../views/components/widget-container.vue | 20 +++---------------- .../app/desktop/views/components/window.vue | 15 ++++---------- .../desktop/views/pages/deck/deck.column.vue | 2 +- .../pages/user/user.followers-you-know.vue | 2 +- .../desktop/views/pages/user/user.friends.vue | 2 +- .../desktop/views/pages/user/user.photos.vue | 2 +- src/client/app/store.ts | 1 - src/client/theme/dark.json | 3 +++ src/client/theme/light.json | 3 +++ 11 files changed, 18 insertions(+), 41 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index db2a155221..f5d0a180d8 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -784,7 +784,6 @@ desktop/views/components/settings.vue: rounded-corners: "UIの角を丸める" circle-icons: "円形のアイコンを使用" contrasted-acct: "ユーザー名にコントラストを付ける" - gradient-window-header: "ウィンドウのタイトルバーにグラデーションを使用" post-form-on-timeline: "タイムライン上部に投稿フォームを表示する" suggest-recent-hashtags: "最近のハッシュタグを投稿フォームに表示する" show-clock-on-header: "右上に時計を表示する" diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 4efaa75c4b..e95e7a735d 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -66,7 +66,6 @@ %i18n:common.reduce-motion% %i18n:@contrasted-acct% %i18n:common.show-full-acct% - %i18n:@gradient-window-header% %i18n:common.i-like-sushi% %i18n:@post-form-on-timeline% @@ -421,12 +420,7 @@ export default Vue.extend({ disableViaMobile: { get() { return this.$store.state.settings.disableViaMobile; }, set(value) { this.$store.dispatch('settings/set', { key: 'disableViaMobile', value }); } - }, - - gradientWindowHeader: { - get() { return this.$store.state.settings.gradientWindowHeader; }, - set(value) { this.$store.dispatch('settings/set', { key: 'gradientWindowHeader', value }); } - }, + } }, created() { (this as any).os.getMeta().then(meta => { diff --git a/src/client/app/desktop/views/components/widget-container.vue b/src/client/app/desktop/views/components/widget-container.vue index 156823799f..cfcb2785c5 100644 --- a/src/client/app/desktop/views/components/widget-container.vue +++ b/src/client/app/desktop/views/components/widget-container.vue @@ -1,6 +1,6 @@