Giter VIP home page Giter VIP logo

Comments (5)

dnmeid avatar dnmeid commented on June 28, 2024

All page names are available as internal variables like $(internal:page_number_1_name). You can replace the default page name button with a regular button and style it to your liking. Does that solve your problem?

from companion.

Julusian avatar Julusian commented on June 28, 2024

Perhaps we should look into whether we should remove these special button types, and turn them into some builtin 'presets' instead.

I suspect that making the page up and down buttons draw the same won't be possible, but the page name button seems much more doable

from companion.

Julusian avatar Julusian commented on June 28, 2024

It needs some internal changes, to expand the availability of the $(this:page) variables, as well as adding a new $(this:page_name) variable, then it is entirely possible to match the existing behavior of the page number button:

Image

I suspect that going forward we should make the decision between the showing the page name, or the page number be a manual choice, which will remove the need to use a feedback to do that here.
In fact this may be desirable soon, as the changes in the experimental builds do nudge users to set page names more

Based on how this was done, maybe the page up and down buttons can be achieved too. I had to use a png for the yellow 'page' text, the same would work for page up and down. The symbols to use on the buttons could be handled via a couple of new internal variables

from companion.

dnmeid avatar dnmeid commented on June 28, 2024

Seems I have to hurry up with the layers for button graphics. Then we can replicate the page button style exactly with a regular button and make all the properties available for customisation.

from companion.

Julusian avatar Julusian commented on June 28, 2024

@dnmeid yeah that sounds good. I'm not in a rush to change this, it is possible to make this custom button manually after all.

I ended up pushing the changes so that internal actions, feedbacks and button text can use $(this:page) and related variables, so the workaround version can be written once and copied to pages that want it without reconfiguring.

from companion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.