orontee / taranis

Local weather data on your PocketBook e-book reader.
GNU General Public License v3.0
22 stars 0 forks source link

Support multiple screen orientation #67

Closed orontee closed 10 months ago

orontee commented 10 months ago

Screen orientation is forced at built time.

I changed the orientation to test current state: Widgets display is ok and interactions work, but the widget layout must be reworked, things look flatten while in landscape mode! Is it worth the trouble? Not clear to me, I am closing this issue, for now.

diff --git a/src/ui.cc b/src/ui.cc
index a9adb94..7c2553f 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -20,8 +20,8 @@ namespace taranis {
 Ui::Ui(std::shared_ptr<Config> config, std::shared_ptr<Model> model)
     : KeyEventDispatcher{}, config{config}, model{model}, icons{new Icons{}},
       fonts{new Fonts{}} {
-  SetPanelType(0);
-  SetOrientation(0);
+  SetPanelType(PANEL_DISABLED);
+  SetOrientation(1);

   this->location_box =
       std::make_shared<LocationBox>(0, 0, this->model, this->fonts);