diff --git a/src/config/locales/de/translation.json b/src/config/locales/de/translation.json index 3f7ce575..5e2feeef 100644 --- a/src/config/locales/de/translation.json +++ b/src/config/locales/de/translation.json @@ -74,39 +74,52 @@ "title": "Einstellungen", "general": { "title": "Allgemein", - "appearance": "Anzeige", - "theme_color": "Themenfarbe:", + "toot": { + "title": "Toot", + "description": "Customize default visibility of toot.", + "visibility": { + "title": "Standard-Sichtbarkeit", + "public": "Öffenlich", + "unlisted": "Nicht gelistet", + "private": "Privat", + "direct": "Direkt" + } + }, + "sounds": { + "title": "Klänge", + "description": "Please set feedback sounds.", + "fav_rb": "When you favourite or boost the toot", + "toot": "When you post toot" + } + }, + "appearance": { + "title": "Anzeige", + "theme_color": "Themenfarbe", "theme": { "light": "Hell", "dark": "Dunkel" }, - "font_size": "Schriftgröße:", + "font_size": "Schriftgröße", "display_style": { - "title": "Anzeigestil:", + "title": "Anzeigestil", "display_name_and_username": "Anzeige- und Benutzername", "display_name": "Anzeigename", "username": "Benutzername" }, - "toot": "Toot", - "visibility": { - "title": "Standard-Sichtbarkeit:", - "public": "Öffenlich", - "unlisted": "Nicht gelistet", - "private": "Privat", - "direct": "Direkt" - }, - "sounds": "Klänge", - "fav_rb_sound": "Favorit und Boost:", - "toot_sound": "Toot:" + "time_format": { + "title": "Time format", + "absolute": "Absolute", + "relative": "Relative" + } }, "notification": { "title": "Notification", - "notify": { - "title": "Notify", - "reply": "Reply:", - "reblog": "Reblog:", - "favourite": "Favourite:", - "follow": "Follow:" + "enable": { + "description": "Pelase set notification events.", + "reply": "Notify me when I receive reply", + "reblog": "Notify me when I receive reblog", + "favourite": "Notify me when I receive favourite", + "follow": "Notify me when I receive follow" } }, "account": { @@ -124,7 +137,7 @@ }, "language": { "title": "Sprache", - "display_language": "Sprache", + "language_description": "Choose the language you would like to use with Whalebird.", "notice": "Erfordert Neustart", "confirm": { "title": "Warnung", diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json index 8889e63b..4e1a20f0 100644 --- a/src/config/locales/en/translation.json +++ b/src/config/locales/en/translation.json @@ -74,44 +74,52 @@ "title": "Preferences", "general": { "title": "General", - "appearance": "Appearance", - "theme_color": "Theme color:", + "toot": { + "title": "Toot", + "description": "Customize default visibility of toot.", + "visibility": { + "title": "Default visibility", + "public": "Public", + "unlisted": "Unlisted", + "private": "Private", + "direct": "Direct" + } + }, + "sounds": { + "title": "Sounds", + "description": "Please set feedback sounds.", + "fav_rb": "When you favorite or boost the toot", + "toot": "When you post toot" + } + }, + "appearance": { + "title": "Appearance", + "theme_color": "Theme color", "theme": { "light": "Light", "dark": "Dark" }, - "font_size": "Font size:", + "font_size": "Font size", "display_style": { - "title": "Display style:", + "title": "Display style of username", "display_name_and_username": "Display name and username", "display_name": "Display name", "username": "Username" }, "time_format": { - "title": "Time format:", + "title": "Time format", "absolute": "Absolute", "relative": "Relative" - }, - "toot": "Toot", - "visibility": { - "title": "Default visibility:", - "public": "Public", - "unlisted": "Unlisted", - "private": "Private", - "direct": "Direct" - }, - "sounds": "Sounds", - "fav_rb_sound": "Favorite and Boost:", - "toot_sound": "Toot:" + } }, "notification": { "title": "Notification", - "notify": { - "title": "Notify", - "reply": "Reply:", - "reblog": "Reblog:", - "favourite": "Favourite:", - "follow": "Follow:" + "enable": { + "description": "Please set notification events.", + "reply": "Notify me when I receive reply", + "reblog": "Notify me when I receive reblog", + "favourite": "Notify me when I receive favourite", + "follow": "Notify me when I receive follow" } }, "account": { @@ -129,7 +137,7 @@ }, "language": { "title": "Language", - "display_language": "language", + "language_description": "Choose the language you would like to use with Whalebird.", "notice": "Require relaunch", "confirm": { "title": "Warning", diff --git a/src/config/locales/fr/translation.json b/src/config/locales/fr/translation.json index 18a2cb98..54ecef2c 100644 --- a/src/config/locales/fr/translation.json +++ b/src/config/locales/fr/translation.json @@ -74,39 +74,52 @@ "title": "Préférences", "general": { "title": "Général", - "appearance": "Apparence", - "theme_color": "Couleur du thème:", + "toot": { + "title": "Pouet", + "description": "Customize default visibility of toot.", + "visibility": { + "title": "Visibilité par défaut", + "public": "Public", + "unlisted": "Public sans être affiché sur le fil public", + "private": "Abonné⋅e⋅s uniquement", + "direct": "Message direct" + } + }, + "sounds": { + "title": "Sons", + "description": "Please set feedback sounds.", + "fav_rb": "Partages et favoris", + "toot": "Pouets" + } + }, + "appearance": { + "title": "Apparence", + "theme_color": "Couleur du thème", "theme": { "light": "Clair", "dark": "Foncé" }, - "font_size": "Taille des caractères:", + "font_size": "Taille des caractères", "display_style": { - "title": "Format d'affichage:", + "title": "Format d'affichage", "display_name_and_username": "Nom et utilisateur⋅trice", "display_name": "Nom", "username": "Utilisateur⋅trice" }, - "toot": "Pouet", - "visibility": { - "title": "Visibilité par défaut:", - "public": "Public", - "unlisted": "Public sans être affiché sur le fil public", - "private": "Abonné⋅e⋅s uniquement", - "direct": "Message direct" - }, - "sounds": "Sons", - "fav_rb_sound": "Partages et favoris:", - "toot_sound": "Pouets:" + "time_format": { + "title": "Time format", + "absolute": "Absolute", + "relative": "Relative" + } }, "notification": { "title": "Notification", - "notify": { - "title": "Notify", - "reply": "Reply:", - "reblog": "Reblog:", - "favourite": "Favourite:", - "follow": "Follow:" + "enable": { + "description": "Please set notification events.", + "reply": "Notify me when I receive reply", + "reblog": "Notify me when I receive reblog", + "favourite": "Notify me when I receive favourite", + "follow": "Notify me when I receive follow" } }, "account": { @@ -124,7 +137,7 @@ }, "language": { "title": "Langue", - "display_language": "Langue", + "language_description": "Choose the language you would like to use with Whalebird.", "notice": "Nécessite un redémarrage", "confirm": { "title": "Avertissement", diff --git a/src/config/locales/ja/translation.json b/src/config/locales/ja/translation.json index e5d71291..ddffadf8 100644 --- a/src/config/locales/ja/translation.json +++ b/src/config/locales/ja/translation.json @@ -74,39 +74,52 @@ "title": "設定", "general": { "title": "一般", - "appearance": "外観", - "theme_color": "テーマカラー:", + "toot": { + "title": "トゥート", + "description": "トゥートの公開設定を変更できます", + "visibility": { + "title": "公開設定", + "public": "公開", + "unlisted": "未収載", + "private": "フォロワー限定", + "direct": "ダイレクト" + } + }, + "sounds": { + "title": "効果音", + "description": "操作時の効果音を設定", + "fav_rb": "お気に入り,ブースト時", + "toot": "トゥート時" + } + }, + "appearance": { + "title": "外観", + "theme_color": "テーマカラー", "theme": { "light": "標準", "dark": "ダーク" }, - "font_size": "フォントサイズ:", + "font_size": "フォントサイズ", "display_style": { - "title": "ユーザ名の表示形式:", + "title": "ユーザ名の表示形式", "display_name_and_username": "表示名+ユーザー名", "display_name": "表示名", "username": "ユーザー名" }, - "toot": "トゥート", - "visibility": { - "title": "公開設定:", - "public": "公開", - "unlisted": "未収載", - "private": "フォロワー限定", - "direct": "ダイレクト" - }, - "sounds": "効果音", - "fav_rb_sound": "お気に入り,ブースト時:", - "toot_sound": "トゥート時:" + "time_format": { + "title": "時間の表示形式", + "absolute": "絶対表示", + "relative": "相対表示" + } }, "notification": { "title": "通知", - "notify": { - "title": "通知設定", - "reply": "返信:", - "reblog": "ブースト:", - "favourite": "お気に入り:", - "follow": "フォロー:" + "enable": { + "description": "通知を受け取るかどうかを設定", + "reply": "返信がある時", + "reblog": "ブーストされた時", + "favourite": "お気に入りされた時", + "follow": "フォローされた時" } }, "account": { @@ -124,7 +137,7 @@ }, "language": { "title": "言語", - "display_language": "表示言語", + "language_description": "Whalebirdの表示言語を選択", "notice": "再起動が必要です", "confirm": { "title": "再起動します", diff --git a/src/config/locales/ko/translation.json b/src/config/locales/ko/translation.json index 6ef09a9d..b4ab6641 100644 --- a/src/config/locales/ko/translation.json +++ b/src/config/locales/ko/translation.json @@ -74,44 +74,52 @@ "title": "설정", "general": { "title": "일반", - "appearance": "외관", - "theme_color": "테마 색상:", + "toot": { + "title": "툿", + "description": "Customize default visibility of toot.", + "visibility": { + "title": "기본 공개 설정", + "public": "공개", + "unlisted": "미등록", + "private": "비공개", + "direct": "다이렉트" + } + }, + "sounds": { + "title": "사운드", + "description": "Please set feedback sounds.", + "fav_rb": "When you favorite or boost the toot", + "toot": "When you post toot" + } + }, + "appearance": { + "title": "외관", + "theme_color": "테마 색상", "theme": { "light": "밝은 테마", "dark": "어두운 테마" }, - "font_size": "폰트 크기:", + "font_size": "폰트 크기", "display_style": { - "title": "사용자 표시 형식:", + "title": "사용자 표시 형식", "display_name_and_username": "닉네임과 아이디 모두 보이기", "display_name": "닉네임만 보이기", "username": "아이디만 보이기" }, - "time_format":{ - "title": "시간 표시 형식:", + "time_format":{ + "title": "시간 표시 형식", "absolute": "고정 시각 표시", "relative": "상대 시간 표시" - }, - "toot": "툿", - "visibility": { - "title": "기본 공개 설정:", - "public": "공개", - "unlisted": "미등록", - "private": "비공개", - "direct": "다이렉트" - }, - "sounds": "사운드", - "fav_rb_sound": "즐겨찾기 및 부스트:", - "toot_sound": "툿:" + } }, "notification": { "title": "알림", - "notify": { - "title": "푸쉬 알림", - "reply": "답장:", - "reblog": "부스트:", - "favourite": "즐겨찾기:", - "follow": "즐겨찾기:" + "enable": { + "description": "Please set notification events.", + "reply": "Notify me when I receive reply", + "reblog": "Notify me when I receive reblog", + "favourite": "Notify me when I receive favourite", + "follow": "Notify me when I receive follow" } }, "account": { @@ -129,7 +137,7 @@ }, "language": { "title": "언어", - "display_language": "언어", + "language_description": "Choose the language you would like to use with Whalebird.", "notice": "재실행이 필요합니다", "confirm": { "title": "알림", diff --git a/src/config/locales/pl/translation.json b/src/config/locales/pl/translation.json index 9ff34e29..086ed225 100644 --- a/src/config/locales/pl/translation.json +++ b/src/config/locales/pl/translation.json @@ -74,39 +74,52 @@ "title": "Preferencje", "general": { "title": "Ogólne", - "appearance": "Wygląd", - "theme_color": "Kolor motywu:", + "toot": { + "title": "Wpisy", + "description": "Customize default visibility of toot.", + "visibility": { + "title": "Domyślna widoczność", + "public": "Publiczne", + "unlisted": "Niewidoczne", + "private": "Prywatne", + "direct": "Bezpośrednie" + } + }, + "sounds": { + "title": "Dźwięki", + "description": "Please set feedback sounds.", + "fav_rb": "Polubienie i podbicie", + "toot": "Wpisy" + } + }, + "appearance": { + "title": "Wygląd", + "theme_color": "Kolor motywu", "theme": { "light": "Jasny", "dark": "Ciemny" }, - "font_size": "Rozmiar czcionki:", + "font_size": "Rozmiar czcionki", "display_style": { - "title": "Styl wyświetlania:", + "title": "Styl wyświetlania", "display_name_and_username": "Nazwa wyświetlana i nazwa użytkownika", "display_name": "Nazwa wyświetlana", "username": "Nazwa użytkownika" }, - "toot": "Wpisy", - "visibility": { - "title": "Domyślna widoczność:", - "public": "Publiczne", - "unlisted": "Niewidoczne", - "private": "Prywatne", - "direct": "Bezpośrednie" - }, - "sounds": "Dźwięki", - "fav_rb_sound": "Polubienie i podbicie:", - "toot_sound": "Wpisy:" + "time_format": { + "title": "Time format", + "absolute": "Absolute", + "relative": "Relative" + } }, "notification": { "title": "Notification", - "notify": { - "title": "Notify", - "reply": "Reply:", - "reblog": "Reblog:", - "favourite": "Favourite:", - "follow": "Follow:" + "enable": { + "description": "Please set notification events.", + "reply": "Notify me when I receive reply", + "reblog": "Notify me when I receive reblog", + "favourite": "Notify me when I receive favourite", + "follow": "Notify me when I receive follow" } }, "account": { @@ -124,7 +137,7 @@ }, "language": { "title": "Język", - "display_language": "język", + "language_description": "Choose the language you would like to use with Whalebird.", "notice": "Wymaga ponownego uruchomienia", "confirm": { "title": "Ostrzeżenie", diff --git a/src/constants/displayStyle.js b/src/constants/displayStyle.js index f1aae951..450de0ae 100644 --- a/src/constants/displayStyle.js +++ b/src/constants/displayStyle.js @@ -1,14 +1,14 @@ export default { DisplayNameAndUsername: { - name: 'preferences.general.display_style.display_name_and_username', + name: 'preferences.appearance.display_style.display_name_and_username', value: 0 }, DisplayName: { - name: 'preferences.general.display_style.display_name', + name: 'preferences.appearance.display_style.display_name', value: 1 }, Username: { - name: 'preferences.general.display_style.username', + name: 'preferences.appearance.display_style.username', value: 2 } } diff --git a/src/constants/theme.js b/src/constants/theme.js index eeaa3415..d11ded68 100644 --- a/src/constants/theme.js +++ b/src/constants/theme.js @@ -1,10 +1,10 @@ export default { Light: { - name: 'preferences.general.theme.light', + name: 'preferences.appearance.theme.light', key: 'light' }, Dark: { - name: 'preferences.general.theme.dark', + name: 'preferences.appearance.theme.dark', key: 'dark' } } diff --git a/src/constants/timeFormat.js b/src/constants/timeFormat.js index f0040766..17e0fae6 100644 --- a/src/constants/timeFormat.js +++ b/src/constants/timeFormat.js @@ -1,10 +1,10 @@ export default { Absolute: { - name: 'preferences.general.time_format.absolute', + name: 'preferences.appearance.time_format.absolute', value: 0 }, Relative: { - name: 'preferences.general.time_format.relative', + name: 'preferences.appearance.time_format.relative', value: 1 } } diff --git a/src/constants/visibility.js b/src/constants/visibility.js index 38a24dfb..d73fd460 100644 --- a/src/constants/visibility.js +++ b/src/constants/visibility.js @@ -1,21 +1,21 @@ export default { Public: { - name: 'preferences.general.visibility.public', + name: 'preferences.general.toot.visibility.public', value: 0, key: 'public' }, Unlisted: { - name: 'preferences.general.visibility.unlisted', + name: 'preferences.general.toot.visibility.unlisted', value: 1, key: 'unlisted' }, Private: { - name: 'preferences.general.visibility.private', + name: 'preferences.general.toot.visibility.private', value: 2, key: 'private' }, Direct: { - name: 'preferences.general.visibility.direct', + name: 'preferences.general.toot.visibility.direct', value: 3, key: 'direct' } diff --git a/src/main/preferences.js b/src/main/preferences.js index d19e4045..737b036f 100644 --- a/src/main/preferences.js +++ b/src/main/preferences.js @@ -12,11 +12,7 @@ const Base = { fav_rb: true, toot: true }, - theme: Theme.Light.key, - fontSize: 14, - displayNameStyle: DisplayStyle.DisplayNameAndUsername.value, - tootVisibility: Visibility.Public.value, - timeFormat: TimeFormat.Absolute.value + tootVisibility: Visibility.Public.value }, state: { collapse: false @@ -31,6 +27,12 @@ const Base = { favourite: true, follow: true } + }, + appearance: { + theme: Theme.Light.key, + fontSize: 14, + displayNameStyle: DisplayStyle.DisplayNameAndUsername.value, + timeFormat: TimeFormat.Absolute.value } } diff --git a/src/renderer/components/Preferences.vue b/src/renderer/components/Preferences.vue index b5af2abb..86d053b6 100644 --- a/src/renderer/components/Preferences.vue +++ b/src/renderer/components/Preferences.vue @@ -23,15 +23,19 @@ {{ $t('preferences.general.title') }} - + + + {{ $t('preferences.appearance.title') }} + + {{ $t('preferences.notification.title') }} - + {{ $t('preferences.account.title') }} - + {{ $t('preferences.language.title') }} @@ -72,6 +76,9 @@ export default { }, language () { this.$router.push('/preferences/language') + }, + appearance () { + this.$router.push('/preferences/appearance') } } } diff --git a/src/renderer/components/Preferences/Appearance.vue b/src/renderer/components/Preferences/Appearance.vue new file mode 100644 index 00000000..37c48a42 --- /dev/null +++ b/src/renderer/components/Preferences/Appearance.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/renderer/components/Preferences/Appearance/Toot.vue b/src/renderer/components/Preferences/Appearance/Toot.vue new file mode 100644 index 00000000..d8283642 --- /dev/null +++ b/src/renderer/components/Preferences/Appearance/Toot.vue @@ -0,0 +1,273 @@ + + + + + diff --git a/src/renderer/components/Preferences/General.vue b/src/renderer/components/Preferences/General.vue index 02c332db..60ec59d7 100644 --- a/src/renderer/components/Preferences/General.vue +++ b/src/renderer/components/Preferences/General.vue @@ -1,95 +1,39 @@ @@ -97,9 +41,6 @@ diff --git a/src/renderer/components/Preferences/Language.vue b/src/renderer/components/Preferences/Language.vue index b511acbf..d3116651 100644 --- a/src/renderer/components/Preferences/Language.vue +++ b/src/renderer/components/Preferences/Language.vue @@ -2,24 +2,16 @@

{{ $t('preferences.language.title') }}

- - - - - - - -
{{ $t('preferences.language.display_language') }} - - - - -

{{ $t('preferences.language.notice') }}

-
+

{{ $t('preferences.language.language_description') }}

+ + + + +

{{ $t('preferences.language.notice') }}

@@ -80,27 +72,13 @@ export default { diff --git a/src/renderer/components/Preferences/Notification.vue b/src/renderer/components/Preferences/Notification.vue index 56802c9d..95f55629 100644 --- a/src/renderer/components/Preferences/Notification.vue +++ b/src/renderer/components/Preferences/Notification.vue @@ -1,48 +1,44 @@ @@ -106,23 +102,16 @@ export default {