toggle to change new popups and fix in plus

This commit is contained in:
Kima 2024-05-22 18:09:40 +02:00
parent 45ffdff324
commit b7e83d10dc
3 changed files with 51 additions and 1 deletions

View File

@ -121,6 +121,7 @@ extension SettingsLocalization on String {
"grade_streak_subtitle": "So many 5s in a row?!", "grade_streak_subtitle": "So many 5s in a row?!",
// other // other
"only_ch_title_font": "Font Only for Titles", "only_ch_title_font": "Font Only for Titles",
"new_popups": "New Popups",
}, },
"hu_hu": { "hu_hu": {
"personal_details": "Személyes információk", "personal_details": "Személyes információk",
@ -240,6 +241,7 @@ extension SettingsLocalization on String {
"grade_streak_subtitle": "Egymás után ennyi 5-ös?!", "grade_streak_subtitle": "Egymás után ennyi 5-ös?!",
// other // other
"only_ch_title_font": "Betűtípus csak címekre", "only_ch_title_font": "Betűtípus csak címekre",
"new_popups": "Új felugró ablakok",
}, },
"de_de": { "de_de": {
"personal_details": "Persönliche Angaben", "personal_details": "Persönliche Angaben",
@ -359,6 +361,7 @@ extension SettingsLocalization on String {
"grade_streak_subtitle": "So viele 5er in Folge?!", "grade_streak_subtitle": "So viele 5er in Folge?!",
// other // other
"only_ch_title_font": "Schriftart nur für Titel", "only_ch_title_font": "Schriftart nur für Titel",
"new_popups": "Neue Popups",
}, },
}; };

View File

@ -461,6 +461,49 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
), ),
], ],
), ),
// new popup toggle
SplittedPanel(
padding: const EdgeInsets.only(top: 9.0),
cardPadding: const EdgeInsets.all(4.0),
isSeparated: true,
children: [
PanelButton(
padding: const EdgeInsets.only(left: 14.0, right: 6.0),
onPressed: () async {
settingsProvider.update(
newPopups: !settingsProvider.newPopups);
setState(() {});
},
title: Text(
"new_popups".i18n,
style: TextStyle(
color: AppColors.of(context).text.withOpacity(
settingsProvider.newPopups ? .95 : .25),
),
),
leading: Icon(
FeatherIcons.alertOctagon,
size: 22.0,
color: AppColors.of(context).text.withOpacity(
settingsProvider.newPopups ? .95 : .25),
),
trailing: Switch(
onChanged: (v) async {
settingsProvider.update(newPopups: v);
setState(() {});
},
value: settingsProvider.newPopups,
activeColor: Theme.of(context).colorScheme.secondary,
),
borderRadius: const BorderRadius.vertical(
top: Radius.circular(12.0),
bottom: Radius.circular(12.0),
),
),
],
),
// change subject icons // change subject icons
// SplittedPanel( // SplittedPanel(
// padding: const EdgeInsets.only(top: 9.0), // padding: const EdgeInsets.only(top: 9.0),
@ -980,6 +1023,10 @@ class PersonalizeSettingsScreenState extends State<PersonalizeSettingsScreen>
), ),
], ],
), ),
// bottom padding
const SizedBox(
height: 20.0,
),
], ],
), ),
), ),

@ -1 +1 @@
Subproject commit 6a2f729e179f3435b0c9d350326708a67bdb0364 Subproject commit b470466b79ef1ed7b18701c157a8bd37488c947d