Skip to content

Commit

Permalink
ui: fine tune
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Aug 10, 2024
1 parent d31abd5 commit 984bebc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
9 changes: 3 additions & 6 deletions ui/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,13 @@ class _MainSkeletonState extends State<MainSkeleton> {
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: const Row(
children: [
Text("Polaris"),
],
),
title: Text("Polaris"),

actions: [
SearchAnchor(
builder: (BuildContext context, SearchController controller) {
return Container(
constraints: const BoxConstraints(maxWidth: 300, maxHeight: 40),
constraints: const BoxConstraints(maxWidth: 250, maxHeight: 40),
child: Opacity(
opacity: 0.8,
child: SearchBar(
Expand Down
4 changes: 2 additions & 2 deletions ui/lib/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ class _SystemSettingsPageState extends ConsumerState<SystemSettingsPage> {
),
ExpansionTile(
expandedAlignment: Alignment.centerLeft,
childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0),
childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
initiallyExpanded: false,
title: Text("存储"),
children: [StorageSettings()],
),
ExpansionTile(
expandedAlignment: Alignment.centerLeft,
childrenPadding: EdgeInsets.fromLTRB(20, 0, 50, 0),
childrenPadding: EdgeInsets.fromLTRB(20, 0, 20, 0),
initiallyExpanded: false,
title: Text("通知客户端"),
children: [NotifierSettings()],
Expand Down
13 changes: 6 additions & 7 deletions ui/lib/widgets/detail_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class _DetailCardState extends ConsumerState<DetailCard> {
margin: const EdgeInsets.all(4),
clipBehavior: Clip.hardEdge,
child: Container(
constraints:
BoxConstraints(maxHeight: 400),
constraints: BoxConstraints(maxHeight: 400),
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.cover,
Expand Down Expand Up @@ -91,16 +90,16 @@ class _DetailCardState extends ConsumerState<DetailCard> {
clipBehavior: Clip.hardEdge,
shape: ContinuousRectangleBorder(
borderRadius: BorderRadius.circular(100.0)),
label: Text("${widget.details.resolution}"),
label: Text(
"${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}"
"${widget.details.targetDir}"),
padding: EdgeInsets.all(0),
),
Chip(
clipBehavior: Clip.hardEdge,
shape: ContinuousRectangleBorder(
borderRadius: BorderRadius.circular(100.0)),
label: Text(
"${widget.details.storage!.name}: ${widget.details.mediaType == "tv" ? widget.details.storage!.tvPath : widget.details.storage!.moviePath}"
"${widget.details.targetDir}"),
label: Text("${widget.details.resolution}"),
padding: EdgeInsets.all(0),
),
widget.details.limiter != null &&
Expand Down Expand Up @@ -139,7 +138,7 @@ class _DetailCardState extends ConsumerState<DetailCard> {
)
],
),
const Text("",style: TextStyle(height: 1)),
const Text("", style: TextStyle(height: 1)),
Expanded(
child: Text(
overflow: TextOverflow.ellipsis,
Expand Down

0 comments on commit 984bebc

Please sign in to comment.