yaclf
This commit is contained in:
@@ -124,8 +124,7 @@ void ClockSettingsActivity::render(RenderLock&&) {
|
|||||||
const int contentHeight = pageHeight - contentTop - metrics.buttonHintsHeight - metrics.verticalSpacing * 2;
|
const int contentHeight = pageHeight - contentTop - metrics.buttonHintsHeight - metrics.verticalSpacing * 2;
|
||||||
|
|
||||||
GUI.drawList(
|
GUI.drawList(
|
||||||
renderer, Rect{0, contentTop, pageWidth, contentHeight}, static_cast<int>(menuItems.size()),
|
renderer, Rect{0, contentTop, pageWidth, contentHeight}, static_cast<int>(menuItems.size()), selectedIndex,
|
||||||
selectedIndex,
|
|
||||||
[this](int index) {
|
[this](int index) {
|
||||||
const auto title = I18N.get(menuItems[index].labelId);
|
const auto title = I18N.get(menuItems[index].labelId);
|
||||||
return menuItems[index].isSeparator ? UITheme::makeSeparatorTitle(title) : title;
|
return menuItems[index].isSeparator ? UITheme::makeSeparatorTitle(title) : title;
|
||||||
|
|||||||
@@ -1,21 +1,14 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include <I18n.h>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include <I18n.h>
|
|
||||||
|
|
||||||
#include "activities/Activity.h"
|
#include "activities/Activity.h"
|
||||||
#include "util/ButtonNavigator.h"
|
#include "util/ButtonNavigator.h"
|
||||||
|
|
||||||
class ClockSettingsActivity final : public Activity {
|
class ClockSettingsActivity final : public Activity {
|
||||||
enum class Action {
|
enum class Action { USE_CLOCK, CLOCK_FORMAT, TIMEZONE, SYNC_TIME, DETECT_TIMEZONE, NONE };
|
||||||
USE_CLOCK,
|
|
||||||
CLOCK_FORMAT,
|
|
||||||
TIMEZONE,
|
|
||||||
SYNC_TIME,
|
|
||||||
DETECT_TIMEZONE,
|
|
||||||
NONE
|
|
||||||
};
|
|
||||||
|
|
||||||
struct MenuItem {
|
struct MenuItem {
|
||||||
Action action;
|
Action action;
|
||||||
|
|||||||
Reference in New Issue
Block a user