feat: mobile-like window size and always-visible stats
- Changed window size to mobile phone format (400x800) - Removed width condition for ActiveProxyFooter - now always visible - Added run-umbrix.sh launch script with icon copying - Stats cards now display on all screen sizes
This commit is contained in:
@@ -14,7 +14,7 @@ struct _MyApplication
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
|
||||
#define ICON_PATH "./hiddify.png"
|
||||
#define ICON_PATH "./umbrix.png"
|
||||
|
||||
// Implements GApplication::activate.
|
||||
static void my_application_activate(GApplication *application)
|
||||
@@ -47,14 +47,14 @@ static void my_application_activate(GApplication *application)
|
||||
{
|
||||
GtkHeaderBar *header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
|
||||
gtk_widget_show(GTK_WIDGET(header_bar));
|
||||
gtk_header_bar_set_title(header_bar, "Hiddify");
|
||||
gtk_header_bar_set_title(header_bar, "Umbrix");
|
||||
gtk_header_bar_set_show_close_button(header_bar, TRUE);
|
||||
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
gtk_window_set_title(window, "Hiddify");
|
||||
gtk_window_set_title(window, "Umbrix");
|
||||
}
|
||||
|
||||
gtk_window_set_default_size(window, 1280, 720);
|
||||
@@ -137,6 +137,6 @@ MyApplication *my_application_new()
|
||||
{
|
||||
return MY_APPLICATION(g_object_new(my_application_get_type(),
|
||||
"application-id", APPLICATION_ID,
|
||||
"flags", G_APPLICATION_FLAGS_NONE,
|
||||
"flags", G_APPLICATION_DEFAULT_FLAGS,
|
||||
nullptr));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user