Compare commits

...

2 Commits

Author SHA1 Message Date
Jared Bell
c6db38cb09 Merge branch 'main' into ui-polish-4 2023-01-23 10:50:46 -07:00
Jared Bell
5448f97d3d Update icon dimensions to match source PNGs
Retaining base dimension of the icons removes artifacts caused when resizing to non-divisible sizes.

* circle button icons (search)
* Close "X"s
* Main menu icons
2023-01-10 13:22:03 -07:00
4 changed files with 5 additions and 5 deletions

View File

@ -128,7 +128,7 @@ class _ArtifactScreenState extends State<ArtifactCarouselScreen> {
trailing: (context) => CircleBtn( trailing: (context) => CircleBtn(
semanticLabel: $strings.artifactsButtonBrowse, semanticLabel: $strings.artifactsButtonBrowse,
onPressed: _handleSearchTap, onPressed: _handleSearchTap,
child: AppIcon(AppIcons.search), child: AppIcon(AppIcons.search, size: 24),
), ),
), ),
], ],

View File

@ -195,7 +195,7 @@ class _OpenedTimeRange extends StatelessWidget {
semanticLabel: $strings.expandingTimeSelectorSemanticSelector, semanticLabel: $strings.expandingTimeSelectorSemanticSelector,
enableFeedback: false, // handled when panelController changes. enableFeedback: false, // handled when panelController changes.
icon: AppIcons.close, icon: AppIcons.close,
iconSize: 20, iconSize: 24,
padding: EdgeInsets.symmetric(vertical: $styles.insets.xxs), padding: EdgeInsets.symmetric(vertical: $styles.insets.xxs),
bgColor: Colors.transparent, bgColor: Colors.transparent,
), ),

View File

@ -154,8 +154,8 @@ class _SearchInput extends StatelessWidget {
color: $styles.colors.white, color: $styles.colors.white,
icon: AppIcons.close, icon: AppIcons.close,
semanticLabel: $strings.searchInputSemanticClear, semanticLabel: $strings.searchInputSemanticClear,
size: $styles.insets.md, size: $styles.insets.lg,
iconSize: $styles.insets.sm, iconSize: 24,
onPressed: () { onPressed: () {
textController.clear(); textController.clear();
onSubmit(''); onSubmit('');

View File

@ -205,7 +205,7 @@ class _MenuTextBtn extends StatelessWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
AppIcon(icon, color: $styles.colors.offWhite), AppIcon(icon, color: $styles.colors.offWhite, size: 24),
Gap($styles.insets.xs), Gap($styles.insets.xs),
Text(label, style: $styles.text.bodyBold.copyWith(height: 1)), Text(label, style: $styles.text.bodyBold.copyWith(height: 1)),
], ],