forked from github/szkolny
[UI] Fix timetable lesson height. Add missing timetable settings.
This commit is contained in:
parent
6f12227c2e
commit
2ec06bc39a
@ -54,6 +54,13 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun getItems() = listOfNotNull(
|
override fun getItems() = listOfNotNull(
|
||||||
|
util.createActionItem(
|
||||||
|
text = R.string.menu_timetable_config,
|
||||||
|
icon = CommunityMaterial.Icon3.cmd_timetable
|
||||||
|
) {
|
||||||
|
TimetableConfigDialog(activity, reloadOnDismiss = false).show()
|
||||||
|
},
|
||||||
|
|
||||||
util.createActionItem(
|
util.createActionItem(
|
||||||
text = R.string.menu_agenda_config,
|
text = R.string.menu_agenda_config,
|
||||||
icon = CommunityMaterial.Icon.cmd_calendar_outline
|
icon = CommunityMaterial.Icon.cmd_calendar_outline
|
||||||
@ -70,7 +77,7 @@ class SettingsRegisterCard(util: SettingsUtil) : SettingsCard(util) {
|
|||||||
|
|
||||||
util.createActionItem(
|
util.createActionItem(
|
||||||
text = R.string.menu_messages_config,
|
text = R.string.menu_messages_config,
|
||||||
icon = CommunityMaterial.Icon.cmd_calendar_outline
|
icon = CommunityMaterial.Icon.cmd_email_outline
|
||||||
) {
|
) {
|
||||||
MessagesConfigDialog(activity, reloadOnDismiss = false).show()
|
MessagesConfigDialog(activity, reloadOnDismiss = false).show()
|
||||||
},
|
},
|
||||||
|
@ -85,7 +85,7 @@ class TimetableDayFragment : LazyFragment(), CoroutineScope {
|
|||||||
startHour = startHour,
|
startHour = startHour,
|
||||||
endHour = endHour,
|
endHour = endHour,
|
||||||
dividerHeight = 1.dp,
|
dividerHeight = 1.dp,
|
||||||
halfHourHeight = if (app.profile.loginStoreType == LOGIN_TYPE_USOS) 45.dp else 30.dp,
|
halfHourHeight = if (app.profile.loginStoreType == LOGIN_TYPE_USOS) 45.dp else 60.dp,
|
||||||
hourDividerColor = R.attr.hourDividerColor.resolveAttr(context),
|
hourDividerColor = R.attr.hourDividerColor.resolveAttr(context),
|
||||||
halfHourDividerColor = R.attr.halfHourDividerColor.resolveAttr(context),
|
halfHourDividerColor = R.attr.halfHourDividerColor.resolveAttr(context),
|
||||||
hourLabelWidth = 40.dp,
|
hourLabelWidth = 40.dp,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user