import QtQuick 2.0
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12

Page {
  id: notification_root;
  property string notification_title: "";
  property string notification_text: ""
  header: ToolBar {
    height: 20;
    Label {
      anchors.centerIn: parent
      text: notification_title;
    }
    ToolButton {
      width: 20;
      height: 20;
      anchors.horizontalCenter: parent.horizontalCenter;
      anchors.right: parent.right;
      icon.source: "qrc:/icons/close_white_24dp.svg";
      onClicked: notification_root.destroy();
    }
  }
  Label {
    anchors.fill: parent
    Layout.fillWidth: true;
    text: notification_text;
  }
}
