screen max width fixes (#2663)

* max width fixes

* format
This commit is contained in:
Totoo
2025-05-23 08:42:19 +02:00
committed by GitHub
parent c80cae3638
commit ac31f4781c
33 changed files with 65 additions and 65 deletions

View File

@@ -58,7 +58,7 @@ class SpectrumInputImageView : public View {
uint32_t data_start{0};
Button button_load_image{
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
{0 * 8, 11 * 16 - 4, screen_width, 28},
"Load Image ..."};
bool drawBMP_scaled(const ui::Rect r, const std::string file);

View File

@@ -53,43 +53,43 @@ class SpectrumInputTextView : public View {
void on_set_text(NavigationView& nav);
Text text_message_0{
{0 * 8, 0 * 16, 30 * 8, 16},
{0 * 8, 0 * 16, screen_width, 16},
""};
Text text_message_1{
{0 * 8, 1 * 16, 30 * 8, 16},
{0 * 8, 1 * 16, screen_width, 16},
""};
Text text_message_2{
{0 * 8, 2 * 16, 30 * 8, 16},
{0 * 8, 2 * 16, screen_width, 16},
""};
Text text_message_3{
{0 * 8, 3 * 16, 30 * 8, 16},
{0 * 8, 3 * 16, screen_width, 16},
""};
Text text_message_4{
{0 * 8, 4 * 16, 30 * 8, 16},
{0 * 8, 4 * 16, screen_width, 16},
""};
Text text_message_5{
{0 * 8, 5 * 16, 30 * 8, 16},
{0 * 8, 5 * 16, screen_width, 16},
""};
Text text_message_6{
{0 * 8, 6 * 16, 30 * 8, 16},
{0 * 8, 6 * 16, screen_width, 16},
""};
Text text_message_7{
{0 * 8, 7 * 16, 30 * 8, 16},
{0 * 8, 7 * 16, screen_width, 16},
""};
Text text_message_8{
{0 * 8, 8 * 16, 30 * 8, 16},
{0 * 8, 8 * 16, screen_width, 16},
""};
Text text_message_9{
{0 * 8, 9 * 16, 30 * 8, 16},
{0 * 8, 9 * 16, screen_width, 16},
""};
std::array<Text*, 10> text_message{{
@@ -106,7 +106,7 @@ class SpectrumInputTextView : public View {
}};
Button button_message{
{0 * 8, 11 * 16 - 4, 30 * 8, 28},
{0 * 8, 11 * 16 - 4, screen_width, 28},
"Set message"};
};