Merge pull request #144 from cogwheel0/update-drawer-item-styling
update-drawer-item-styling
This commit is contained in:
@@ -1771,13 +1771,14 @@ class _ConversationTile extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final theme = context.conduitTheme;
|
final theme = context.conduitTheme;
|
||||||
final borderRadius = BorderRadius.circular(AppBorderRadius.small);
|
const BorderRadius borderRadius = BorderRadius.zero;
|
||||||
final Color background = selected
|
final Color background = selected
|
||||||
? theme.buttonPrimary.withValues(alpha: 0.1)
|
? theme.buttonPrimary.withValues(alpha: 0.1)
|
||||||
: theme.surfaceContainer;
|
: Colors.transparent;
|
||||||
final Color borderColor = selected
|
final Color borderColor = selected
|
||||||
? theme.buttonPrimary.withValues(alpha: 0.5)
|
? theme.buttonPrimary.withValues(alpha: 0.5)
|
||||||
: theme.surfaceContainerHighest.withValues(alpha: 0.40);
|
: Colors.transparent;
|
||||||
|
|
||||||
final List<BoxShadow> shadow = const [];
|
final List<BoxShadow> shadow = const [];
|
||||||
|
|
||||||
Color? overlayForStates(Set<WidgetState> states) {
|
Color? overlayForStates(Set<WidgetState> states) {
|
||||||
@@ -1808,7 +1809,18 @@ class _ConversationTile extends StatelessWidget {
|
|||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: background,
|
color: background,
|
||||||
borderRadius: borderRadius,
|
borderRadius: borderRadius,
|
||||||
border: Border.all(color: borderColor, width: BorderWidth.thin),
|
border: selected
|
||||||
|
? Border(
|
||||||
|
top: BorderSide(
|
||||||
|
color: borderColor,
|
||||||
|
width: BorderWidth.thin,
|
||||||
|
),
|
||||||
|
bottom: BorderSide(
|
||||||
|
color: borderColor,
|
||||||
|
width: BorderWidth.thin,
|
||||||
|
),
|
||||||
|
)
|
||||||
|
: null,
|
||||||
boxShadow: shadow,
|
boxShadow: shadow,
|
||||||
),
|
),
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user