Author Topic: theme screen size Q:  (Read 5983 times)

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
theme screen size Q:
« on: February 17, 2017, 08:10:00 PM »
so iv been off and running making my own theme's for a bit now.

and iv been just making them with this

local flx = fe.layout.width;
local fly = fe.layout.height;
local flw = fe.layout.width;
local flh = fe.layout.height;

so that for the most part all will adjust to diff screen sizes...
i just bought a pi-3b and im testing some of my themes they are on a bartop with a 5.4 ratio screen
and going to need a bit of adjusting because it is such an odd size

so my Q is what is the best way to make a  theme to this screen size ?
 i know can just edit it till it look's good , but i feel i should be setting the screen size, or somthing
then also their is how one would give the option to have it fit multiple screen sizes.

my goal is to start making my themes, and update my older ones so that i have a better product...

if you have experience with this please chime in and give me your input  thanks...
help a friend....

keilmillerjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: theme screen size Q:
« Reply #1 on: February 17, 2017, 08:38:31 PM »
so iv been off and running making my own theme's for a bit now.

and iv been just making them with this

local flx = fe.layout.width;
local fly = fe.layout.height;
local flw = fe.layout.width;
local flh = fe.layout.height;

so that for the most part all will adjust to diff screen sizes...
i just bought a pi-3b and im testing some of my themes they are on a bartop with a 5.4 ratio screen
and going to need a bit of adjusting because it is such an odd size

so my Q is what is the best way to make a  theme to this screen size ?
 i know can just edit it till it look's good , but i feel i should be setting the screen size, or somthing
then also their is how one would give the option to have it fit multiple screen sizes.

my goal is to start making my themes, and update my older ones so that i have a better product...

if you have experience with this please chime in and give me your input  thanks...

Your spect ratio is not a problem at all. I am currently using percentages of layout width and height for all my calculations. You can look at my code for the flavors layout (link in sig). They benefit of this approach is that my theme will look good with almost any resolution or orientation, and it does not require separate coding. It took me a while to find this method. That is not to say that this is the only solution. I am curious as to what others might have for an alternate solution.

I might release snippets like that as a module. I am out of work for a but due to serious head injury. Now is time to get ahead on all these attract mode things I said I would do, but I worked like 70 hours a week.

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: theme screen size Q:
« Reply #2 on: February 18, 2017, 06:09:27 AM »
this is a very diff way of doing things,, thanks for sharing your way...will test a bit.
help a friend....

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: theme screen size Q:
« Reply #3 on: February 18, 2017, 06:21:39 AM »
Also I recommend looking at 'Supporting Multiple Aspects' here:
https://github.com/mickelson/attract/wiki/Scripting-Tips-and-Tricks

Using percentages of the screen is good for most layout objects, but if you want to start adjusting aspects individually, it could be a good practice to store settings for each aspect (they can still be done with percentages), as well as easier to update individually.