summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-08 15:47:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-08 15:47:41 +0900
commit0e95b33b6a6dab12c2080848cfddc7b20e4b2218 (patch)
tree80fbba422f5e769f480223a8cefc9cd7a946e458 /src/client
parent:art: (diff)
downloadmisskey-0e95b33b6a6dab12c2080848cfddc7b20e4b2218.tar.gz
misskey-0e95b33b6a6dab12c2080848cfddc7b20e4b2218.tar.bz2
misskey-0e95b33b6a6dab12c2080848cfddc7b20e4b2218.zip
Improve theme
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/misskey-flavored-markdown.ts12
-rw-r--r--src/client/theme/dark.json53
-rw-r--r--src/client/theme/light.json53
3 files changed, 14 insertions, 4 deletions
diff --git a/src/client/app/common/views/components/misskey-flavored-markdown.ts b/src/client/app/common/views/components/misskey-flavored-markdown.ts
index 224bd6f5de..8da50395cc 100644
--- a/src/client/app/common/views/components/misskey-flavored-markdown.ts
+++ b/src/client/app/common/views/components/misskey-flavored-markdown.ts
@@ -95,7 +95,8 @@ export default Vue.component('misskey-flavored-markdown', {
return [createElement(MkUrl, {
props: {
url: token.content,
- target: '_blank'
+ target: '_blank',
+ style: 'color:var(--mfmLink);'
}
})];
}
@@ -106,7 +107,8 @@ export default Vue.component('misskey-flavored-markdown', {
class: 'link',
href: token.url,
target: '_blank',
- title: token.url
+ title: token.url,
+ style: 'color:var(--mfmLink);'
}
}, token.title)];
}
@@ -116,7 +118,8 @@ export default Vue.component('misskey-flavored-markdown', {
attrs: {
href: `${url}/@${getAcct(token)}`,
target: '_blank',
- dataIsMe: (this as any).i && getAcct((this as any).i) == getAcct(token)
+ dataIsMe: (this as any).i && getAcct((this as any).i) == getAcct(token),
+ style: 'color:var(--mfmMention);'
},
directives: [{
name: 'user-preview',
@@ -129,7 +132,8 @@ export default Vue.component('misskey-flavored-markdown', {
return [createElement('a', {
attrs: {
href: `${url}/tags/${encodeURIComponent(token.hashtag)}`,
- target: '_blank'
+ target: '_blank',
+ style: 'color:var(--mfmHashtag);'
}
}, token.content)];
}
diff --git a/src/client/theme/dark.json5 b/src/client/theme/dark.json5
index 4fa38a3ae0..80af94aecd 100644
--- a/src/client/theme/dark.json5
+++ b/src/client/theme/dark.json5
@@ -121,6 +121,9 @@
mfmTitleBg: 'rgba(0, 0, 0, 0.2)',
mfmQuote: ':alpha<0.7<$text',
mfmQuoteLine: ':alpha<0.6<$text',
+ mfmLink: '$primary',
+ mfmMention: '$primary',
+ mfmHashtag: '$primary',
suspendedInfoBg: '#611d1d',
suspendedInfoFg: '#ffb4b4',
diff --git a/src/client/theme/light.json5 b/src/client/theme/light.json5
index 9f17a63dda..b770aa182b 100644
--- a/src/client/theme/light.json5
+++ b/src/client/theme/light.json5
@@ -121,6 +121,9 @@
mfmTitleBg: 'rgba(0, 0, 0, 0.07)',
mfmQuote: ':alpha<0.6<$text',
mfmQuoteLine: ':alpha<0.5<$text',
+ mfmLink: '$primary',
+ mfmMention: '$primary',
+ mfmHashtag: '$primary',
suspendedInfoBg: '#ffdbdb',
suspendedInfoFg: '#570808',