Jump to content

c# ui alert/progress bar


Recommended Posts

Posted

@softworkzHave you added a simple way to display a popup like how throwing an alert displays a simple popup?
Also looking for a simple progress bar (infinity spinner is fine) could be like a spacer item, just make visible when needed.

Also can we have an option to make the plugin take up full width on the main page, it sems to only be taking up 50%, or did I miss something because you have full width as an example of a popup

Posted

 

14 hours ago, bakes82 said:

Also looking for a simple progress bar (infinity spinner is fine) could be like a spacer item, just make visible when needed.

The two way for displaying progress bars are StatusItem or GenericListItem. You can make a status item visible  based on another property (which you can control from code. 

 

14 hours ago, bakes82 said:

Also can we have an option to make the plugin take up full width on the main page, it sems to only be taking up 50%, or did I miss something because you have full width as an example of a popup

Already possible:

        public DialogsPageView(PluginInfo pluginInfo)
        : base(pluginInfo.Id)
        {
            this.DialogSize = DialogSize.FullScreen;
            this.CompactViewAppearance = CompactViewAppearance.UseAllScreenSpace;
        }

 

14 hours ago, bakes82 said:

Have you added a simple way to display a popup like how throwing an alert displays a simple popup?

For showing something manually, a Dialog with Emby SDK Reference: DialogSize.Small is the best you can get.

Then, for all buttons, there's the  Emby SDK Reference: ButtonItem.ConfirmationPrompt property. When you add any text there, user will get an OK/Cancel prompt when clicking the button (showing that text)

 

bakes82
Posted
On 2/26/2025 at 9:47 AM, softworkz said:

Already possible:

        public DialogsPageView(PluginInfo pluginInfo)
        : base(pluginInfo.Id)
        {
            this.DialogSize = DialogSize.FullScreen;
            this.CompactViewAppearance = CompactViewAppearance.UseAllScreenSpace;
        }

Doesnt this only apply to dialogs? Im talking about the PluginViewBase page, I dont want to have to open something in a dialog.

This seems to be the issue
image.png.9e9aca8e0b9b1ce088058ddc6f852ccf.png

Posted

You declare the content but the presentation is on the side of Emby. It makes sure that it is presented in the best way on phones, tablets, desktop and TV. You cannot change that.

bakes82
Posted
9 hours ago, softworkz said:

best way

But it doesn't present it in the best way on desktops. On desktop it is forced to whatever your max is, which isnt very dynamic, nor does it scale well.  Like why does the "dashboard" have 100% width but my plugin cant. Id even go for an option that says this plugin can only be used on desktop just so I can have 100% width, though Im not sure what the point of having 80char max is for desktop, is 1990 calling?

image.thumb.png.2e86ace00dde057cc0ce6ac82e303b66.png

vs
image.thumb.png.c100597cc60968fb4ac0696e6be9f91e.png

Posted

This is the pattern that works and that we are using for the grid:

 

 

That's all I have to offer.

There's a way to add  buttons to the bottom bar, but it might be broken by the oversized button.

Don't know the current state, I've proposed a number of fixes but there was no agreement and then I gave it up.

bakes82
Posted
7 minutes ago, softworkz said:

Don't know the current state, I've proposed a number of fixes but there was no agreement and then I gave it up.

Sad, seems to be the state of Emby though lol.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...