grpc import

This commit is contained in:
2023-12-02 12:26:17 +08:00
parent 9f6f9b2dc4
commit 5f4af52ef2
14 changed files with 319 additions and 10 deletions

View File

@ -119,7 +119,7 @@ class AboutUI extends BaseUI<AboutUIModel> {
),
onPressed: () {
launchUrlString(
"https://github.com/xkeyC/StarCitizenToolBox");
"https://github.com/StarCitizenToolBox/app");
},
),
],

View File

@ -147,7 +147,7 @@ class HomeUI extends BaseUI<HomeUIModel> {
? null
: () => model.launchRSI(),
child: Padding(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.all(6),
child: Icon(
model.isCurGameRunning
? FluentIcons.stop_solid
@ -161,7 +161,7 @@ class HomeUI extends BaseUI<HomeUIModel> {
const SizedBox(width: 12),
Button(
child: const Padding(
padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_open),
),
onPressed: () => model.openDir(model.scInstalledPath)),

View File

@ -48,7 +48,7 @@ class IndexUI extends BaseUI<IndexUIModel> {
pane: NavigationPane(
selected: model.curIndex,
items: getNavigationPaneItems(model),
size: const NavigationPaneSize(openWidth: 160),
size: const NavigationPaneSize(openWidth: 64),
),
paneBodyBuilder: (item, child) {
// final name =
@ -97,8 +97,20 @@ class IndexUI extends BaseUI<IndexUIModel> {
return [
for (final kv in menus.entries)
PaneItem(
icon: Icon(kv.key),
title: Text(kv.value),
icon: Padding(
padding: const EdgeInsets.only(top: 6, bottom: 6, left: 4),
child: Column(
children: [
Icon(kv.key, size: 18),
const SizedBox(height: 3),
Text(
kv.value,
style: const TextStyle(fontSize: 11),
)
],
),
),
// title: Text(kv.value),
body: const SizedBox.shrink(),
onTap: () {
model.onIndexMenuTap(kv.value);

View File

@ -29,7 +29,7 @@ class ToolsUI extends BaseUI<ToolsUIModel> {
onPressed: model.working ? null : model.loadData,
child: const Padding(
padding: EdgeInsets.only(
top: 32, bottom: 32, left: 12, right: 12),
top: 30, bottom: 30, left: 12, right: 12),
child: Icon(FluentIcons.refresh),
),
),
@ -197,7 +197,7 @@ class ToolsUI extends BaseUI<ToolsUIModel> {
const SizedBox(width: 8),
Button(
child: const Padding(
padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_open),
),
onPressed: () => model.openDir(model.scInstalledPath))
@ -234,7 +234,7 @@ class ToolsUI extends BaseUI<ToolsUIModel> {
const SizedBox(width: 8),
Button(
child: const Padding(
padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(6),
child: Icon(FluentIcons.folder_open),
),
onPressed: () => model.openDir(model.rsiLauncherInstalledPath))