From 4fe2f29478fbf81cb21450170b551ed21211a854 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Sep 2018 14:32:48 +0900 Subject: [PATCH] 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",