Files
ToDo/src/gui/mainwindow.ui
2026-04-12 15:08:28 +02:00

500 lines
14 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1032</width>
<height>629</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>1032</width>
<height>629</height>
</size>
</property>
<property name="windowTitle">
<string>ToDo</string>
</property>
<property name="windowIcon">
<iconset resource="../resources.qrc">
<normaloff>:/images/icon.png</normaloff>:/images/icon.png</iconset>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="unifiedTitleAndToolBarOnMac">
<bool>false</bool>
</property>
<widget class="QWidget" name="centralwidget">
<property name="styleSheet">
<string notr="true">background-color: rgb(249, 255, 251);</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<property name="horizontalSpacing">
<number>0</number>
</property>
<item row="0" column="0">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>0</number>
</property>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="sizeConstraint">
<enum>QLayout::SizeConstraint::SetDefaultConstraint</enum>
</property>
<item>
<widget class="QLabel" name="label">
<property name="minimumSize">
<size>
<width>250</width>
<height>50</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>50</height>
</size>
</property>
<property name="font">
<font>
<pointsize>28</pointsize>
<fontweight>ExtraLight</fontweight>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(119, 167, 92);
color: rgb(249, 255, 251);
border: none;
padding-left: 2px;
border-bottom: 2px solid rgb(242, 242, 242);
font-weight: 200;</string>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="text">
<string>ToDo</string>
</property>
<property name="alignment">
<set>Qt::AlignmentFlag::AlignLeading|Qt::AlignmentFlag::AlignLeft|Qt::AlignmentFlag::AlignVCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QListWidget" name="lists">
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
<fontweight>Light</fontweight>
</font>
</property>
<property name="contextMenuPolicy">
<enum>Qt::ContextMenuPolicy::CustomContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true">QListView {
show-decoration-selected: 1; /* make the selection span the entire width of the view */
background-color: rgb(119, 167, 92);
border: none;
padding: 2px;
padding-top: 14px;
}
QListView::item {
padding: 8px;
border: none;
color: rgb(252, 252, 252);
font-size: 10pt;
}
QListView::item:selected {
background-color: rgb(170, 216, 130);
}
QListView::item:selected:!active {
background-color: rgb(170, 216, 130);
}
QListView::item:selected:active {
background-color: rgb(170, 216, 130);
}
QListView::item:hover {
background-color: rgb(152, 193, 116);
}
</string>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="autoScrollMargin">
<number>2</number>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditTrigger::NoEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="defaultDropAction">
<enum>Qt::DropAction::IgnoreAction</enum>
</property>
<property name="supportedDragActions">
<set>Qt::DropAction::IgnoreAction</set>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="horizontalWidget" native="true">
<property name="minimumSize">
<size>
<width>250</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>16777215</height>
</size>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(138, 176, 106);</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>6</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="version">
<property name="enabled">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(74, 104, 57);</string>
</property>
<property name="text">
<string>0.0.0-dev</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="addListButton">
<property name="toolTip">
<string>New list</string>
</property>
<property name="styleSheet">
<string notr="true">border: none;
padding: 6px;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentNew"/>
</property>
<property name="flat">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>0</number>
</property>
<item>
<widget class="QListWidget" name="notes">
<property name="enabled">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QListView {
show-decoration-selected: 1; /* make the selection span the entire width of the view */
background-color: rgb(242, 242, 242);
border: none;
padding: 2px;
color: rgb(13, 13, 13);
}
QListView::item {
background-color: rgb(231, 231, 231);
margin: 10px;
padding: 10px;
border: none;
}
QListView::item:alternate {
background: #EEEEEE;
}
QListView::item:selected {
background-color: rgb(154, 154, 154);
}
QListView::item:selected:!active {
background: none;
}
QListView::item:hover {
background-color: rgb(204, 204, 204);
}
QListWidget::indicator {
width: 18px;
height: 18px;
border: 1px solid rgb(119, 167, 92);
border-radius: 10px;
background: rgb(226, 226, 226);
}
QListWidget::indicator:checked {
background: rgb(119, 167, 92);
border: 2px solid rgb(119, 167, 92);
}
QListWidget::indicator:unchecked:hover {
border: 2px solid #aaa;
}</string>
</property>
<property name="frameShadow">
<enum>QFrame::Shadow::Plain</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<property name="editTriggers">
<set>QAbstractItemView::EditTrigger::AllEditTriggers</set>
</property>
<property name="showDropIndicator" stdset="0">
<bool>false</bool>
</property>
<property name="defaultDropAction">
<enum>Qt::DropAction::IgnoreAction</enum>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SelectionMode::MultiSelection</enum>
</property>
<property name="supportedDragActions">
<set>Qt::DropAction::IgnoreAction</set>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLineEdit" name="newNoteEdit">
<property name="enabled">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">margin: 20px;
background-color: rgb(243, 243, 243);
padding: 8px;
color: rgb(13, 13, 13);
border: none;</string>
</property>
<property name="placeholderText">
<string>Enter your new note here</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="saveNoteButton">
<property name="styleSheet">
<string notr="true">background-color: rgb(170, 216, 130);
color: rgb(242, 242, 242);
border: none;
padding: 8px;</string>
</property>
<property name="text">
<string/>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentSend"/>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1032</width>
<height>24</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(119, 167, 92);
color: rgb(249, 255, 251);
font-weight: 200;</string>
</property>
<widget class="QMenu" name="menuAbout">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout"/>
</widget>
<widget class="QMenu" name="menuFichier">
<property name="title">
<string>File</string>
</property>
<addaction name="actionNew_list"/>
<addaction name="separator"/>
<addaction name="actionClose"/>
</widget>
<addaction name="menuFichier"/>
<addaction name="menuAbout"/>
</widget>
<action name="actionAbout">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::HelpAbout"/>
</property>
<property name="text">
<string>About</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::AboutRole</enum>
</property>
</action>
<action name="actionNew_list">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::DocumentNew"/>
</property>
<property name="text">
<string>New list...</string>
</property>
<property name="shortcut">
<string>Ctrl+N</string>
</property>
</action>
<action name="actionClose">
<property name="icon">
<iconset theme="QIcon::ThemeIcon::ApplicationExit"/>
</property>
<property name="text">
<string>Close</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
<property name="menuRole">
<enum>QAction::MenuRole::QuitRole</enum>
</property>
</action>
</widget>
<resources>
<include location="../resources.qrc"/>
</resources>
<connections/>
</ui>