making on off buttons in mobile dashboard bigger

Moderator: leecollings

Post Reply
djazzz
Posts: 13
Joined: Monday 23 November 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

making on off buttons in mobile dashboard bigger

Post by djazzz »

Hi,

could some css/htnl-guru, tell me how i can make the on and off switch/lights buttons bigger in dashboard (mobile view)?

thanks
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by gizmocuz »

Maybe control + / - keys in the browser work ?
Quality outlives Quantity!
djazzz
Posts: 13
Joined: Monday 23 November 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by djazzz »

yes it does, but unfortunately on my android phone that isn t an option.

I would want them a bit wider, on my sub 5 inch phone, it is hit and miss. They are displayed below each other:
Screenshot_2016-03-14-18-04-54.png
Screenshot_2016-03-14-18-04-54.png (140.47 KiB) Viewed 1921 times
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by stlaha2007 »

Depends on what your browser is... Chrome or FireFox have 'remote' debufging options.

With that you can see which css-file AND which tag you need to modify...
Dont have a guide howto, but on developer.google.com are a few howto's for Chrome.

Problem (at least for me) is both Phone and Desktop PC need to be in the same ip-range to do this wired/wireless. Else you can debug thru usb-datacable.


Grtz,
Stephan
djazzz
Posts: 13
Joined: Monday 23 November 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by djazzz »

<button class="btn btn-mini btn-info" type="button" onclick="SwitchLight(2,'On',RefreshFavorites,false);">On</button>

that what i find, bootstrap.css, but how should i proceed...
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by gizmocuz »

That text "Status at this moment" should not be there...
buttons should be next to each other like this:
MobileTheme.PNG
MobileTheme.PNG (22.82 KiB) Viewed 1866 times
Are you using the default domoticz theme/html files ?
Quality outlives Quantity!
User avatar
gizmocuz
Posts: 2350
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by gizmocuz »

I think you are using the element theme... could you change to simple gray for example ?
Will be corrected in a beta
Quality outlives Quantity!
djazzz
Posts: 13
Joined: Monday 23 November 2015 21:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by djazzz »

yeah, i switched layouts, put it back on default
i removed browser cache, reinstalled browser and now buttons are displayed next to each other.

But question remains, where is the size defined of these on/off buttons?

Anyone?
stlaha2007
Posts: 370
Joined: Monday 05 October 2015 10:16
Target OS: -
Domoticz version:
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by stlaha2007 »

You already answered your question. You did find out which class and which css file bootstrap.css is responsible.

In debugger, just edit the sizes, changes on the fly.

However it is possible that another (loaded and called later) overwrites the setting. Debugger should show that also. Out of the head css option "important" or "no-overwrite" should fix that.

I'm mobile so no example available right now.

Grtz,
Stephan
User avatar
Marci
Posts: 531
Joined: Friday 22 January 2016 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Wakefield, West Yorkshire UK
Contact:

Re: making on off buttons in mobile dashboard bigger

Post by Marci »

But question remains, where is the size defined of these on/off buttons?

Anyone?

Code: Select all

<button class="btn btn-mini btn-info" type="button" onclick="SwitchLight(2,'On',RefreshFavorites,false);">On</button>
The web interface looks to be a bit of a mashup between Bootstrap3 for JS, and Bootstrap2 for CSS (looking at reported versions at top of each file). Refer to http://getbootstrap.com/2.3.2/base-css.html#buttons

If hunting thru bootstrap.css (around line 2539), then you’ll be looking to change the padding values in the btn-mini class - first value is used for top/bottom padding, second value is for left/right padding.

OR you could leave the css alone and do a find-and-replace on ~/domoticz/www/app/DashboardController.js where you should try changing all instances of btn-mini to btn-default, or btn-large, or (if you want to get brutal) btn-block. Restart Domoticz, and possibly drop your cache to get the changes to take effect.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest