Compare commits

...

2 commits

Author SHA1 Message Date
Alex Janka f40269622a gui: RUST_LOG defaults to info 2024-07-20 18:03:57 +10:00
Alex Janka 789eaf275f gui (gtk): game list UI looks much better
fixes column size + initial window size + window title
2024-07-20 18:03:29 +10:00
2 changed files with 7 additions and 3 deletions

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<template class="TwincGameList" parent="GtkApplicationWindow"> <template class="TwincGameList" parent="GtkApplicationWindow">
<property name="title">My GTK App</property> <property name="title">TWINC</property>
<property name="default-width">600</property> <property name="default-width">1200</property>
<property name="default-height">400</property> <property name="default-height">800</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property> <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
@ -27,6 +27,7 @@
<child> <child>
<object class="GtkColumnViewColumn" id="filename_column"> <object class="GtkColumnViewColumn" id="filename_column">
<property name="title">Filename</property> <property name="title">Filename</property>
<property name="expand">true</property>
</object> </object>
</child> </child>
<child> <child>

View file

@ -10,6 +10,9 @@ mod config;
mod gamelist; mod gamelist;
fn main() { fn main() {
if std::env::var_os("RUST_LOG").is_none() {
std::env::set_var("RUST_LOG", "info");
}
env_logger::init(); env_logger::init();
#[cfg(not(all( #[cfg(not(all(
target_os = "macos", target_os = "macos",