这是indexloc提供的服务,不要输入任何密码
Skip to content

feat: add NoteDisplayPage #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/i18n/aria/aria.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ newNotificationReceived: "There are new notifications"
noAccounts: "No accounts"
noTabs: "No tabs"
noteDoubleTapAction: "Note double tap action"
noteFooterSize: "Note action buttons size"
noteLongPressAction: "Note long press action"
noteTapAction: "Note tap action"
notesAfterRenotes: "Notes after renotes"
Expand All @@ -74,8 +75,9 @@ serverUrl: "Server URL"
settingsFileForAria: "Settings file for Aria"
settingsForUser(rich): "Settings for {user}"
showAvatarsInNote: "Show avatars in notes"
showAvatarsInSubNote: "Show avatars in sub notes"
showNoteFooter: "Show action buttons in notes"
showNoteReactionsViewer: "Show reactions viewer in notes"
showNoteReactionsViewer: "Show reactions viewers in notes"
showSelfRenotes: "Show self-renotes"
showStackTrace: "Show stack trace"
showSubNoteFooter: "Show action buttons in subnotes"
Expand Down
2 changes: 2 additions & 0 deletions lib/i18n/aria/aria_ja-JP.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ newNotificationReceived: "新しい通知があります"
noAccounts: "アカウントがありません"
noTabs: "タブがありません"
noteDoubleTapAction: "ノートをダブルタップしたときの動作"
noteFooterSize: "アクションボタンのサイズ"
noteLongPressAction: "ノートを長押ししたときの動作"
noteTapAction: "ノートをタップしたときの動作"
notesAfterRenotes: "リノート直後のノート"
Expand All @@ -70,6 +71,7 @@ serverUrl: "サーバーのURL"
settingsFileForAria: "Ariaの設定ファイル"
settingsForUser(rich): "{user}の設定"
showAvatarsInNote: "ノートにユーザーのアイコンを表示する"
showAvatarsInSubNote: "サブノートにユーザーのアイコンを表示する"
showNoteFooter: "ノートにアクションボタンを表示する"
showNoteReactionsViewer: "ノートにリアクションを表示する"
showSelfRenotes: "セルフリノートを表示する"
Expand Down
2 changes: 2 additions & 0 deletions lib/i18n/aria/aria_ja-KS.i18n.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ newNotificationReceived: "新しい通知があるで"
noAccounts: "アカウントはあらへん"
noTabs: "タブはあらへん"
noteDoubleTapAction: "ノートを二度押ししたときの動作"
noteFooterSize: "アクションボタンのでかさ"
noteLongPressAction: "ノートを長押ししたときの動作"
noteTapAction: "ノートをいらったときの動作"
notesAfterRenotes: "リノート直後のノート"
Expand All @@ -70,6 +71,7 @@ serverUrl: "サーバーのURL"
settingsFileForAria: "Ariaの設定ファイル"
settingsForUser(rich): "{user}の設定"
showAvatarsInNote: "ノートにユーザーのアイコンを表示するで"
showAvatarsInSubNote: "サブノートにユーザーのアイコンを表示するで"
showNoteFooter: "ノートにアクションボタンを表示するで"
showNoteReactionsViewer: "ノートにツッコミを表示するで"
showSelfRenotes: "セルフリノートを表示するで"
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/strings.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// To regenerate, run: `dart run slang`
///
/// Locales: 31
/// Strings: 50668 (1634 per locale)
/// Strings: 50674 (1634 per locale)

// coverage:ignore-file
// ignore_for_file: type=lint
Expand Down
4 changes: 3 additions & 1 deletion lib/i18n/strings_en_US.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class _StringsAriaEnUs {
String get noAccounts => 'No accounts';
String get noTabs => 'No tabs';
String get noteDoubleTapAction => 'Note double tap action';
String get noteFooterSize => 'Note action buttons size';
String get noteLongPressAction => 'Note long press action';
String get noteTapAction => 'Note tap action';
String get notesAfterRenotes => 'Notes after renotes';
Expand Down Expand Up @@ -150,8 +151,9 @@ class _StringsAriaEnUs {
user,
]);
String get showAvatarsInNote => 'Show avatars in notes';
String get showAvatarsInSubNote => 'Show avatars in sub notes';
String get showNoteFooter => 'Show action buttons in notes';
String get showNoteReactionsViewer => 'Show reactions viewer in notes';
String get showNoteReactionsViewer => 'Show reactions viewers in notes';
String get showSelfRenotes => 'Show self-renotes';
String get showStackTrace => 'Show stack trace';
String get showSubNoteFooter => 'Show action buttons in subnotes';
Expand Down
2 changes: 2 additions & 0 deletions lib/i18n/strings_ja_JP.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class _StringsAriaJaJp extends _StringsAriaEnUs {
@override String get noAccounts => 'アカウントがありません';
@override String get noTabs => 'タブがありません';
@override String get noteDoubleTapAction => 'ノートをダブルタップしたときの動作';
@override String get noteFooterSize => 'アクションボタンのサイズ';
@override String get noteLongPressAction => 'ノートを長押ししたときの動作';
@override String get noteTapAction => 'ノートをタップしたときの動作';
@override String get notesAfterRenotes => 'リノート直後のノート';
Expand Down Expand Up @@ -139,6 +140,7 @@ class _StringsAriaJaJp extends _StringsAriaEnUs {
const TextSpan(text: 'の設定'),
]);
@override String get showAvatarsInNote => 'ノートにユーザーのアイコンを表示する';
@override String get showAvatarsInSubNote => 'サブノートにユーザーのアイコンを表示する';
@override String get showNoteFooter => 'ノートにアクションボタンを表示する';
@override String get showNoteReactionsViewer => 'ノートにリアクションを表示する';
@override String get showSelfRenotes => 'セルフリノートを表示する';
Expand Down
2 changes: 2 additions & 0 deletions lib/i18n/strings_ja_KS.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ class _StringsAriaJaKs extends _StringsAriaEnUs {
@override String get noAccounts => 'アカウントはあらへん';
@override String get noTabs => 'タブはあらへん';
@override String get noteDoubleTapAction => 'ノートを二度押ししたときの動作';
@override String get noteFooterSize => 'アクションボタンのでかさ';
@override String get noteLongPressAction => 'ノートを長押ししたときの動作';
@override String get noteTapAction => 'ノートをいらったときの動作';
@override String get notesAfterRenotes => 'リノート直後のノート';
Expand Down Expand Up @@ -139,6 +140,7 @@ class _StringsAriaJaKs extends _StringsAriaEnUs {
const TextSpan(text: 'の設定'),
]);
@override String get showAvatarsInNote => 'ノートにユーザーのアイコンを表示するで';
@override String get showAvatarsInSubNote => 'サブノートにユーザーのアイコンを表示するで';
@override String get showNoteFooter => 'ノートにアクションボタンを表示するで';
@override String get showNoteReactionsViewer => 'ノートにツッコミを表示するで';
@override String get showSelfRenotes => 'セルフリノートを表示するで';
Expand Down
8 changes: 7 additions & 1 deletion lib/i18n/strings_map.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ extension on Translations {
case 'aria.noAccounts': return 'No accounts';
case 'aria.noTabs': return 'No tabs';
case 'aria.noteDoubleTapAction': return 'Note double tap action';
case 'aria.noteFooterSize': return 'Note action buttons size';
case 'aria.noteLongPressAction': return 'Note long press action';
case 'aria.noteTapAction': return 'Note tap action';
case 'aria.notesAfterRenotes': return 'Notes after renotes';
Expand Down Expand Up @@ -114,8 +115,9 @@ extension on Translations {
user,
]);
case 'aria.showAvatarsInNote': return 'Show avatars in notes';
case 'aria.showAvatarsInSubNote': return 'Show avatars in sub notes';
case 'aria.showNoteFooter': return 'Show action buttons in notes';
case 'aria.showNoteReactionsViewer': return 'Show reactions viewer in notes';
case 'aria.showNoteReactionsViewer': return 'Show reactions viewers in notes';
case 'aria.showSelfRenotes': return 'Show self-renotes';
case 'aria.showStackTrace': return 'Show stack trace';
case 'aria.showSubNoteFooter': return 'Show action buttons in subnotes';
Expand Down Expand Up @@ -20954,6 +20956,7 @@ extension on _StringsJaJp {
case 'aria.noAccounts': return 'アカウントがありません';
case 'aria.noTabs': return 'タブがありません';
case 'aria.noteDoubleTapAction': return 'ノートをダブルタップしたときの動作';
case 'aria.noteFooterSize': return 'アクションボタンのサイズ';
case 'aria.noteLongPressAction': return 'ノートを長押ししたときの動作';
case 'aria.noteTapAction': return 'ノートをタップしたときの動作';
case 'aria.notesAfterRenotes': return 'リノート直後のノート';
Expand Down Expand Up @@ -20996,6 +20999,7 @@ extension on _StringsJaJp {
const TextSpan(text: 'の設定'),
]);
case 'aria.showAvatarsInNote': return 'ノートにユーザーのアイコンを表示する';
case 'aria.showAvatarsInSubNote': return 'サブノートにユーザーのアイコンを表示する';
case 'aria.showNoteFooter': return 'ノートにアクションボタンを表示する';
case 'aria.showNoteReactionsViewer': return 'ノートにリアクションを表示する';
case 'aria.showSelfRenotes': return 'セルフリノートを表示する';
Expand Down Expand Up @@ -23436,6 +23440,7 @@ extension on _StringsJaKs {
case 'aria.noAccounts': return 'アカウントはあらへん';
case 'aria.noTabs': return 'タブはあらへん';
case 'aria.noteDoubleTapAction': return 'ノートを二度押ししたときの動作';
case 'aria.noteFooterSize': return 'アクションボタンのでかさ';
case 'aria.noteLongPressAction': return 'ノートを長押ししたときの動作';
case 'aria.noteTapAction': return 'ノートをいらったときの動作';
case 'aria.notesAfterRenotes': return 'リノート直後のノート';
Expand Down Expand Up @@ -23478,6 +23483,7 @@ extension on _StringsJaKs {
const TextSpan(text: 'の設定'),
]);
case 'aria.showAvatarsInNote': return 'ノートにユーザーのアイコンを表示するで';
case 'aria.showAvatarsInSubNote': return 'サブノートにユーザーのアイコンを表示するで';
case 'aria.showNoteFooter': return 'ノートにアクションボタンを表示するで';
case 'aria.showNoteReactionsViewer': return 'ノートにツッコミを表示するで';
case 'aria.showSelfRenotes': return 'セルフリノートを表示するで';
Expand Down
11 changes: 7 additions & 4 deletions lib/model/general_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const defaultFontSize = 14.0;
const maxFontSize = 24.0;
const minReactionsDisplayScale = 0.1;
const maxReactionsDisplayScale = 3.0;
const minNoteFooterScale = 0.5;
const maxNoteFooterScale = 2.0;
const minEmojiPickerScale = 0.1;
const maxEmojiPickerScale = 3.0;

Expand All @@ -26,7 +28,7 @@ class GeneralSettings with _$GeneralSettings {
@Default(true) bool collapseRenotes,
@Default(SensitiveMediaDisplay.respect) SensitiveMediaDisplay sensitive,
@Default(false) bool highlightSensitiveMedia,
@Default(false) bool animatedMfm,
@Default(true) bool animatedMfm,
@Default(true) bool advancedMfm,
@Default(false) bool showReactionsCount,
@Default(false) bool loadRawImages,
Expand All @@ -46,14 +48,15 @@ class GeneralSettings with _$GeneralSettings {
@Default(false) bool showTranslateButtonInNoteFooter,
@Default(defaultFontSize) double fontSize,
String? fontFamily,
@Default(true) bool showNoteFooter,
@Default(true) bool showAvatarsInNote,
@Default(true) bool showAvatarsInSubNote,
@Default(true) bool showNoteReactionsViewer,
@Default(false) bool showSubNoteFooter,
@Default(true) bool showNoteFooter,
@Default(false) bool showSubNoteReactionsViewer,
@Default(false) bool showSubNoteFooter,
@Default(false) bool vibrateNote,
@Default(false) bool vibrateNotification,
@Default(false) bool showTimelineTabBarOnBottom,
@Default(true) bool showAvatarsInNote,
@Default(1.0) double noteFooterScale,

// Behavior
Expand Down
Loading