import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.12
import QtQuick.Controls.Material 2.12
import QtQuick.Layouts 1.12

import LibreHub 1.0


Window {
  property bool is_mobile: width <= 412;
  property bool is_tablet: width <= 801;
  id: app_root;
  width: 412
  height: 732
  visible: true
  title: qsTr("LibreHub Client")

  property color background: "#131a21";
  property color primary: "#0c1016";
  property color accent: "#602dd3";
  property color accent_second: "#5fd462";
  property color text_color: "#2e3746";
  property color highlight_text_color: "#ffffff";

  property bool is_editor_open: false;

  Material.theme: Material.Dark;
  Material.background: background;
  Material.primary: primary;
  Material.accent: accent;



  MainSwipe {}
  AuthPage {}
  ToastNotification {
    anchors.right: parent.right;
    anchors.top: parent.top;
    anchors.margins: 10;
    width: is_mobile? parent.width - 20 : 392;
  }
}
