[ui] UI theme should match repertory blue #61
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
@@ -104,7 +104,7 @@ class _MyAppState extends State<MyApp> {
|
|||||||
child: EditMountScreen(
|
child: EditMountScreen(
|
||||||
mount: mount,
|
mount: mount,
|
||||||
title:
|
title:
|
||||||
'${mount.provider} [${formatMountName(mount.type, mount.name)}] Settings',
|
'${mount.provider} Settings • ${formatMountName(mount.type, mount.name)}',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -168,33 +168,12 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
if (_mount != null) ...[
|
if (_mount != null) ...[
|
||||||
const SizedBox(height: constants.padding),
|
const SizedBox(height: constants.padding),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: Padding(
|
||||||
decoration: BoxDecoration(
|
padding: const EdgeInsets.symmetric(
|
||||||
color: scheme.primary.withValues(
|
horizontal: constants.padding,
|
||||||
alpha: constants.primaryAlpha,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
|
||||||
border: Border.all(
|
|
||||||
color: scheme.outlineVariant.withValues(alpha: 0.06),
|
|
||||||
width: 1,
|
|
||||||
),
|
|
||||||
gradient: const LinearGradient(
|
|
||||||
begin: Alignment.topCenter,
|
|
||||||
end: Alignment.bottomCenter,
|
|
||||||
colors: constants.gradientColors2,
|
|
||||||
),
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Colors.black.withValues(alpha: 0.22),
|
|
||||||
blurRadius: constants.borderRadius,
|
|
||||||
offset: Offset(0, constants.borderRadius),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
borderRadius: BorderRadius.circular(constants.borderRadius),
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(constants.padding),
|
|
||||||
child: MountSettingsWidget(
|
child: MountSettingsWidget(
|
||||||
isAdd: true,
|
isAdd: true,
|
||||||
mount: _mount!,
|
mount: _mount!,
|
||||||
@@ -204,7 +183,6 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
const SizedBox(height: constants.padding),
|
const SizedBox(height: constants.padding),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -169,35 +169,8 @@ class _EditMountScreenState extends State<EditMountScreen> {
|
|||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: constants.padding,
|
horizontal: constants.padding,
|
||||||
),
|
),
|
||||||
child: Material(
|
|
||||||
color: Colors.transparent,
|
|
||||||
child: Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: scheme.primary.withValues(
|
|
||||||
alpha: constants.primaryAlpha,
|
|
||||||
),
|
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
|
||||||
border: Border.all(
|
|
||||||
color: scheme.outlineVariant.withValues(alpha: 0.06),
|
|
||||||
width: 1,
|
|
||||||
),
|
|
||||||
gradient: const LinearGradient(
|
|
||||||
begin: Alignment.topCenter,
|
|
||||||
end: Alignment.bottomCenter,
|
|
||||||
colors: constants.gradientColors2,
|
|
||||||
),
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Colors.black.withValues(alpha: 0.22),
|
|
||||||
blurRadius: constants.borderRadius,
|
|
||||||
offset: Offset(0, constants.borderRadius),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
borderRadius: BorderRadius.circular(constants.borderRadius),
|
||||||
child: Padding(
|
|
||||||
padding: const EdgeInsets.all(constants.padding),
|
|
||||||
child: MountSettingsWidget(
|
child: MountSettingsWidget(
|
||||||
mount: widget.mount,
|
mount: widget.mount,
|
||||||
settings: jsonDecode(
|
settings: jsonDecode(
|
||||||
@@ -208,10 +181,6 @@ class _EditMountScreenState extends State<EditMountScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
|
|
||||||
const SizedBox(height: constants.padding),
|
const SizedBox(height: constants.padding),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -122,29 +122,6 @@ class _EditSettingsScreenState extends State<EditSettingsScreen> {
|
|||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: constants.padding,
|
horizontal: constants.padding,
|
||||||
),
|
),
|
||||||
child: Material(
|
|
||||||
color: Colors.transparent,
|
|
||||||
child: Container(
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
color: scheme.surface.withValues(alpha: 0.40),
|
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
|
||||||
border: Border.all(
|
|
||||||
color: scheme.outlineVariant.withValues(alpha: 0.06),
|
|
||||||
width: 1,
|
|
||||||
),
|
|
||||||
gradient: const LinearGradient(
|
|
||||||
begin: Alignment.topCenter,
|
|
||||||
end: Alignment.bottomCenter,
|
|
||||||
colors: constants.gradientColors2,
|
|
||||||
),
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Colors.black.withValues(alpha: 0.22),
|
|
||||||
blurRadius: constants.borderRadius,
|
|
||||||
offset: Offset(0, constants.borderRadius),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: BorderRadius.circular(constants.borderRadius),
|
borderRadius: BorderRadius.circular(constants.borderRadius),
|
||||||
child: FutureBuilder<Map<String, dynamic>>(
|
child: FutureBuilder<Map<String, dynamic>>(
|
||||||
@@ -152,9 +129,7 @@ class _EditSettingsScreenState extends State<EditSettingsScreen> {
|
|||||||
initialData: const <String, dynamic>{},
|
initialData: const <String, dynamic>{},
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (!snapshot.hasData) {
|
if (!snapshot.hasData) {
|
||||||
return const Center(
|
return const Center(child: CircularProgressIndicator());
|
||||||
child: CircularProgressIndicator(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return UISettingsWidget(
|
return UISettingsWidget(
|
||||||
@@ -169,8 +144,6 @@ class _EditSettingsScreenState extends State<EditSettingsScreen> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(height: constants.padding),
|
const SizedBox(height: constants.padding),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user