Avalonia icon indicating copy to clipboard operation
Avalonia copied to clipboard

Add Status Bar Api

Open emmauss opened this issue 1 year ago • 5 comments

What does the pull request do?

Adds Status Bar api through ITopLevelWithPlatformStatusBar, with color and visibility properties. The Api can be accessed on any Control instance, but is only applied when using the TopLevel's Content, ie the MainView. This Api is targeted toward mobile platforms.

New Properties in Control;

Color StatusBarColor { get; set; }

bool? IsStatusBarVisible { get; set; }

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

  • [ ] Added unit tests (if possible)?
  • [ ] Added XML documentation to any related classes?
  • [ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

emmauss avatar Oct 26 '22 08:10 emmauss

You can test this PR using the following package version. 11.0.999-cibuild0025421-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Oct 26 '22 09:10 avaloniaui-team

If this only applies to the TopLevel why are we defining the property on Control level?

Gillibald avatar Oct 26 '22 09:10 Gillibald

You can test this PR using the following package version. 11.0.999-cibuild0025556-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Nov 01 '22 08:11 avaloniaui-team

Replaced StatusBarColor with StatusBarTheme

emmauss avatar Nov 01 '22 11:11 emmauss

You can test this PR using the following package version. 11.0.999-cibuild0025566-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Nov 01 '22 11:11 avaloniaui-team

You can test this PR using the following package version. 11.0.999-cibuild0025772-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Nov 06 '22 04:11 avaloniaui-team

You can test this PR using the following package version. 11.0.999-cibuild0025964-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Nov 10 '22 06:11 avaloniaui-team

You can test this PR using the following package version. 11.0.999-cibuild0026621-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

avaloniaui-team avatar Nov 28 '22 10:11 avaloniaui-team

Replaced with https://github.com/AvaloniaUI/Avalonia/pull/9641

maxkatz6 avatar Dec 22 '22 15:12 maxkatz6