email-client

A gtk4 Email Client
git clone git://archive.git.mtrnord.blog/erooster-mail/email-client.git
Log | Files | Refs | LICENSE

main.blp (2380B)


      1 using Gtk 4.0;
      2 
      3 Box outer {
      4   orientation: vertical;
      5   halign: fill;
      6   valign: fill;
      7   Box topbar {
      8     halign: fill;
      9     valign: baseline;
     10     Button {
     11       margin-top: 8;
     12       margin-start: 8;
     13       margin-bottom: 8;
     14       margin-end: 8;
     15       label: "Sync";
     16     }
     17     Button {
     18       margin-top: 8;
     19       margin-start: 8;
     20       margin-bottom: 8;
     21       margin-end: 8;
     22       label: "Write";
     23     }
     24   }
     25   Separator {}
     26   Box inner {
     27     orientation: horizontal;
     28     halign: fill;
     29     valign: fill;
     30     vexpand: true;
     31     hexpand: true;
     32     
     33     
     34     Paned {
     35       position: 200;
     36       hexpand: true;
     37       ScrolledWindow {
     38         propagate-natural-width:true;
     39         child: Box sidebar {
     40           orientation: vertical;
     41           halign: fill;
     42           valign: fill;
     43           Expander {
     44             expanded: true;
     45             styles [
     46               "expander"
     47             ]
     48             label-widget: Box{
     49               Image {
     50                   margin-end: 8;
     51                   icon-name: "mail-symbolic";
     52                 }
     53                 Label {
     54                   label: "dont@dox.myself";
     55                 }
     56               };
     57             child: Box {
     58               orientation: vertical;
     59               Button {
     60                 styles [
     61                   "tree-item"
     62                 ]
     63                 Box {
     64                   margin-start: 40;
     65                   Image {
     66                   margin-end: 8;
     67                     icon-name: "inbox-symbolic";
     68                   }
     69                   Label {
     70                     label: "Inbox";
     71                   }
     72                 }
     73               }
     74             };
     75           }
     76         };
     77       }
     78       Paned main {
     79         orientation: vertical;
     80         halign: fill;
     81         valign: fill;
     82         position: 300;
     83         ScrolledWindow {
     84           ListBox {
     85             ListBoxRow {
     86               Box {
     87                 Label {
     88                   label: "test3";
     89                 }
     90               }
     91             }
     92             ListBoxRow {
     93               Box {
     94                 Label {
     95                   label: "test3";
     96                 }
     97               }
     98             }
     99           }
    100         }
    101         Box {
    102           margin-start: 8;
    103           margin-end: 8;
    104           margin-top: 8;
    105           margin-bottom: 8;
    106           valign: start;
    107           halign: start;
    108           Label {
    109             label: "test2";
    110           }
    111         }
    112       }
    113     }
    114   }
    115 }