Giter VIP home page Giter VIP logo

Comments (7)

akasma74 avatar akasma74 commented on August 24, 2024

The idea behind it is to fit everything on a narrow screen, hence the C instead of Cancel.
What should we use instead of Disarm as it's a bit too long?

from hass-custom-alarm.

jcooper-korg avatar jcooper-korg commented on August 24, 2024

Seems like there's plenty of room to just make the buttons wider and use the words "Clear" and "Disarm":
IMG_4119

from hass-custom-alarm.

akasma74 avatar akasma74 commented on August 24, 2024

Ok, I'll give it a try.

Actually, you can play with it for yourself locally and tell us what works best.
Just make the following changes to resources/panel.html:

line 192: replace C with Clear, i.e

<mwc-button class='clear action-button' on-click='callclearcode' raised>Clear</mwc-button>

and line 195: you need a button here as well, not an icon

<mwc-button class='action-button disarm' on-click='callAlarmService' data-call='disarm' raised>Disarm</mwc-button>

from hass-custom-alarm.

jcooper-korg avatar jcooper-korg commented on August 24, 2024

implemented in commit 6010c33.
IMG_4137

I also modified the sm (tablet width > 1024) view to have the same button groupings with 0 at bottom center:
Screen Shot 2019-08-13 at 10 09 16 PM

I'm still experimenting with increasing the button sizes in the sm tablet view.

from hass-custom-alarm.

jcooper-korg avatar jcooper-korg commented on August 24, 2024

not sure if these changes are desirable for everyone. i can send a pull request if you think so.
would probably be nicer if it was made optional in the theme, but i wasn't sure the best way to approach that

from hass-custom-alarm.

akasma74 avatar akasma74 commented on August 24, 2024

let me think about it as there's no rush.. ;)

from hass-custom-alarm.

necromn avatar necromn commented on August 24, 2024

I think the disarm button is far and away more logic for mot people. I have the same problem with people not knowing how to use it - though less critical because mostly arm/disarm through presence automations.

from hass-custom-alarm.

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.