HISE Logo Forum
    • Categories
    • Register
    • Login

    Look and Feel - Toggle Buttons and the MIDI Sources panel...

    Scheduled Pinned Locked Moved Bug Reports
    62 Posts 7 Posters 4.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by Lindon

      It would seem that the MIDI Sources panel uses a default toggle button to represent the selected device - in a way that the MIDI Channel List doesnt....

      So when I laf my toggle buttons to do what I want - it breaks the MIDI Sources panel...

      see the "button" next to KeyLab 49....

      3da49382-663e-4751-a157-297bf6f6a5df-image.png

      Adendum - laf also seems to break the Custom Settings too - meaning they wont show up correctly...

      2babc700-cd7e-4562-9942-ff258efa0a34-image.png

      HISE Development for hire.
      www.channelrobot.com

      ustkU 2 Replies Last reply Reply Quote 1
      • ustkU
        ustk @Lindon
        last edited by

        @Lindon Yeah same issue... The tick boxes of the MidiSources tile react to the LAF which isn't desirable...

        Can't help pressing F5 in the forum...

        1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @Lindon
          last edited by

          @Lindon That's fixed, I made a pull request...

          Can't help pressing F5 in the forum...

          LindonL 1 Reply Last reply Reply Quote 2
          • LindonL
            Lindon @ustk
            last edited by Lindon

            @ustk great. Well done. Can you let us know when its included.

            HISE Development for hire.
            www.channelrobot.com

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Lindon
              last edited by

              Any news on this fix?

              HISE Development for hire.
              www.channelrobot.com

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @Lindon
                last edited by

                @Lindon It's not yet merged, but if you can't wait, just remove or comment out this line:

                Untitled.png

                Can't help pressing F5 in the forum...

                LindonL d.healeyD 2 Replies Last reply Reply Quote 0
                • LindonL
                  Lindon @ustk
                  last edited by

                  @ustk ok thanks - given the Custom Settings is alos broken I assume I need to comment out line 53 too?

                  CustomSettingsWindowPanel::CustomSettingsWindowPanel(FloatingTile* parent) :
                  	FloatingTileContent(parent)
                  {
                  	setDefaultPanelColour(PanelColourId::bgColour, Colours::black);
                  	setDefaultPanelColour(PanelColourId::textColour, Colours::white);
                  
                  	addAndMakeVisible(viewport = new Viewport());
                  
                  	window = new CustomSettingsWindow(getMainController(), parent->shouldCreateChildComponents());
                  
                  	viewport->setViewedComponent(window);
                  	viewport->setScrollBarsShown(true, false, true, false);
                  
                  	if (getMainController()->getCurrentScriptLookAndFeel() != nullptr)
                  	{
                  		slaf = new ScriptingObjects::ScriptedLookAndFeel::Laf(getMainController());
                  		viewport->setLookAndFeel(slaf);    <<<<<<--- this one....
                  	}
                  
                  	window->setFont(GLOBAL_BOLD_FONT());
                  
                  	
                  }
                  

                  HISE Development for hire.
                  www.channelrobot.com

                  ustkU LindonL 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @Lindon
                    last edited by

                    @Lindon Haven't tested, do it and tell me ;)

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • LindonL
                      Lindon @Lindon
                      last edited by

                      damn it - it turns out its way worse than I thought...

                      6b1f742f-ced8-4515-95b9-8be1525df161-image.png

                      So its all over the buttons in all the modulators too...

                      HISE Development for hire.
                      www.channelrobot.com

                      ustkU 1 Reply Last reply Reply Quote 0
                      • ustkU
                        ustk @Lindon
                        last edited by

                        @Lindon probably more lines 50 to 54...

                        Can't help pressing F5 in the forum...

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @ustk
                          last edited by

                          @ustk so in your edit that would mean lines 279-284

                          Now to find where the modulators are using the laf....

                          HISE Development for hire.
                          www.channelrobot.com

                          LindonL 1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @Lindon
                            last edited by

                            Well nothing obvious is jumping out at me...@Christoph-Hart ??

                            HISE Development for hire.
                            www.channelrobot.com

                            LindonL 1 Reply Last reply Reply Quote 0
                            • LindonL
                              Lindon @Lindon
                              last edited by

                              Any chance of getting this looked at? - otherwise the look and feel is actually broken - in that it might work on your project but it screws the HISE interface completely - making it very very hard to work with.

                              HISE Development for hire.
                              www.channelrobot.com

                              d.healeyD 1 Reply Last reply Reply Quote 2
                              • d.healeyD
                                d.healey @Lindon
                                last edited by

                                @Lindon This is why I never use it. It should have no effect on the IDE interface in my opinion.

                                Libre Wave - Freedom respecting instruments and effects
                                My Patreon - HISE tutorials
                                YouTube Channel - Public HISE tutorials

                                1 Reply Last reply Reply Quote 1
                                • ustkU
                                  ustk
                                  last edited by

                                  It's not only this, the popups too and their buttons, and a lot of things...
                                  It's because the buttons/sliders used are the same in front/backend and the laf aren't separated. it should be doable but it might require a lot of redundant modifications...

                                  Can't help pressing F5 in the forum...

                                  1 Reply Last reply Reply Quote 0
                                  • Christoph HartC
                                    Christoph Hart
                                    last edited by

                                    You can reset the look and feel so that it looks right until the next time you compile, which should solve most workflow issues.

                                    The problem is that the look and feel is global so it would be a massive rewrite in order to fix it.

                                    LindonL d.healeyD 2 Replies Last reply Reply Quote 1
                                    • LindonL
                                      Lindon @Christoph Hart
                                      last edited by

                                      @Christoph-Hart - then its not really worth having is it - I might as well just use customer painted panels..

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      1 Reply Last reply Reply Quote 0
                                      • Christoph HartC
                                        Christoph Hart
                                        last edited by

                                        Why? If you want to change anything in the module tree, reset the look and feel, until you work on the UI again, then recompile the script.

                                        LindonL 1 Reply Last reply Reply Quote 0
                                        • LindonL
                                          Lindon @Christoph Hart
                                          last edited by

                                          @Christoph-Hart said in Look and Feel - Toggle Buttons and the MIDI Sources panel...:

                                          Why? If you want to change anything in the module tree, reset the look and feel, until you work on the UI again, then recompile the script.

                                          yes - sure but nothing I do (including commenting out the LaF where @ustk and I identified) does not solve this problem:

                                          set your combo box to some LaF and it breaks the Custom Settings Tile:

                                          d952efbf-aa32-4f12-9a12-c7171418cfba-image.png

                                          So LaF is not usable right now.

                                          HISE Development for hire.
                                          www.channelrobot.com

                                          Casey KolbC 1 Reply Last reply Reply Quote 0
                                          • Casey KolbC
                                            Casey Kolb @Lindon
                                            last edited by

                                            @Lindon Can you post a code snippet (not a HISE snippet) of what you’re doing to the LaF combobox customizations? I customized my comboboxes without any issues to the settings. You might be able to throw an exception for certain comboboxes too.

                                            Casey Kolb
                                            Founder & CEO of Lunacy Audio
                                            Composer | Producer | Software Developer

                                            LindonL 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            15

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            102.6k

                                            Posts