Adpative layout

- The desktop version has the score, ect, in the title bar area now while the mobile version remains the same
- Capitalized "bullseye"
- Used "late" keyword for certain variables
- Updated application Id
This commit is contained in:
Tony Bark 2021-05-29 12:01:35 -04:00
parent 964e861450
commit 593fda0975
22 changed files with 154 additions and 68 deletions

View file

@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.10)
project(runner LANGUAGES CXX)
set(BINARY_NAME "bullseye")
set(APPLICATION_ID "com.example.bullseye")
set(BINARY_NAME "Bullseye")
set(APPLICATION_ID "com.tonybark.bullseye")
cmake_policy(SET CMP0063 NEW)

View file

@ -4,6 +4,10 @@
#include "generated_plugin_registrant.h"
#include <bitsdojo_window_linux/bitsdojo_window_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) bitsdojo_window_linux_registrar =
fl_plugin_registry_get_registrar_for_plugin(registry, "BitsdojoWindowPlugin");
bitsdojo_window_plugin_register_with_registrar(bitsdojo_window_linux_registrar);
}

View file

@ -3,6 +3,7 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
bitsdojo_window_linux
)
set(PLUGIN_BUNDLED_LIBRARIES)

View file

@ -40,12 +40,12 @@ static void my_application_activate(GApplication* application) {
if (use_header_bar) {
GtkHeaderBar *header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "bullseye");
gtk_header_bar_set_title(header_bar, "Bullseye");
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, "bullseye");
gtk_window_set_title(window, "Bullseye");
}
gtk_window_set_default_size(window, 1280, 720);