fix(ui): window title Ch∆In Studio (was F∆I); de-dup federation add-satellite
- linux/macOS window chrome read 'F∆I Studio' (rename leftover) → 'Ch∆In Studio'. - The federation page showed 'Add satellite' twice when empty (FAB + empty-state button); drop the empty-state button, the FAB carries the action. Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
a8feb159ce
commit
ee4a0f6c62
4 changed files with 9 additions and 11 deletions
|
|
@ -131,15 +131,13 @@ class _FederationPageState extends State<FederationPage> {
|
|||
}
|
||||
final sats = snapshot.data ?? [];
|
||||
if (sats.isEmpty) {
|
||||
// The "add satellite" action lives in the FAB (always
|
||||
// visible); don't repeat it here — that showed the button
|
||||
// twice on the empty page.
|
||||
return ChainEmptyState(
|
||||
icon: Icons.hub_outlined,
|
||||
title: l.federationEmptyTitle,
|
||||
hint: l.federationEmptyHint,
|
||||
action: FilledButton.icon(
|
||||
onPressed: _addSatellite,
|
||||
icon: const Icon(Icons.add_link, size: 16),
|
||||
label: Text(l.federationAddSatellite),
|
||||
),
|
||||
);
|
||||
}
|
||||
return ListView.separated(
|
||||
|
|
|
|||
|
|
@ -45,11 +45,11 @@ 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, "F\u2206I Studio");
|
||||
gtk_header_bar_set_title(header_bar, "Ch\u2206In Studio");
|
||||
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, "F\u2206I Studio");
|
||||
gtk_window_set_title(window, "Ch\u2206In Studio");
|
||||
}
|
||||
|
||||
gtk_window_set_default_size(window, 1280, 900);
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@
|
|||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>F∆I Studio</string>
|
||||
<string>Ch∆In Studio</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>F∆I Studio</string>
|
||||
<string>Ch∆In Studio</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ class MainFlutterWindow: NSWindow {
|
|||
self.contentViewController = flutterViewController
|
||||
|
||||
// Override the window title so the OS task switcher and
|
||||
// window chrome read "F∆I Studio" instead of the
|
||||
// window chrome read "Ch∆In Studio" instead of the
|
||||
// pubspec-derived "chain_studio".
|
||||
self.title = "F∆I Studio"
|
||||
self.title = "Ch∆In Studio"
|
||||
|
||||
// Pick a comfortable default window size. 1440x900 is the
|
||||
// effective Retina resolution of a 13" MacBook (Stefan's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue