Comments (16)
I think the scale makes it great on a cell phone, First GUI I can see on my phone
from luci-theme-material.
@hnyman I adjusted the some size. Is it much better now?
from luci-theme-material.
I applied manually your patches and it seems a bit better now. It is still wide, but not quite 1920 px. Maybe 1650 px now. The zone boxes (wan, wan6 ...) look better.
The theme design makes it probably hard to decrease size much more, so I am not sure how much effort you should spend on this.
But one possible idea for you: could the zone boxes (interfaces included in a zone: wan, wan6, sixxs, ...) be arranged vertically inside the box instead of horizontal? I haven't checked the Luci source, if the placement comes from the source, but if that can be arranged in style, that could decrease the horizontal space.
Ps. One additional notion: was it really intentional to hardcode 0.2.9 version to header.htm and footer.htm in commit 74c2313 ?
It still says 0.2.9 there, also in the 0.2.10 release... Earlier there was no version specification.
from luci-theme-material.
@hnyman Ohhhh... Is there any other automated way to solve this problem?
from luci-theme-material.
Sorry, I am not sure to which problem you refer. (the firewall screen or the probably accidental 0.2.9 spec in https://github.com/LuttyYang/luci-theme-material/blob/master/files/templates/footer.htm#L45 and header.htm)
from luci-theme-material.
@hnyman
How to automatically add the current version number to header.htm and footer.htm files.
Is there any other automated way to solve this problem?
thanks
from luci-theme-material.
Ahh, that question.
On the Openwrt side there is no need to set a version number for the theme, as the luci package version number gets automatically created from the date, time and hash of the last commit in the Luci repo: https://github.com/openwrt/luci/blob/master/luci.mk#L52
e.g. "git-15.278.60928-3289e13"
(logic explained in openwrt/luci@0856030 )
That variable is set during the make process and is then used for all the components. There is usually no separate revision IDs for components like modules, applications or themes.
When the buildbot builds the packages automatically every 1-2 days, the version gets set each time according to that last commit. The same also happens if somebody builds his own firmware including the theme. The version is the date/time/hash based one.
Regarding your own 0.2.9 and 0.2.10 etc. builds published at your own site, I do not know any better way to do it. The PKG_VERSION that you define in the Makefile should get applied, I think. But the end-users will probably still see the main luci version in the footer.
In general, I think that most users will either download the most recent theme from the snapshot repo (e.g. https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/ ) as firmware's opkg will fetch it from there or alternatively they include the theme in their build (using luci feed from github/luci). I don't believe that many people will directly download the 0.2.9 etc. revisions from your site. I may be wrong, but that is my hunch.
from luci-theme-material.
@hnyman I think you misunderstood my point. I just want to prevent caching problems...
from luci-theme-material.
Yeah, I got your purpose wrong.
Would it be possible to include the version variable in a similar fashion as the hard-coded version string? (Not say absolute 0.2.9 there, but instead reference to the variable's value, which would be something like the ver.luciversion is used on line #31:
https://github.com/LuttyYang/luci-theme-material/blob/master/files/templates/footer.htm#L31
<a href="https://github.com/openwrt/luci">Powered by <%= ver.luciname %> (<%= ver.luciversion %>)</a> /
If similar things works, that would force the cache to refresh at least when a new Luci version gets installed.
(But your original idea of changing it manually when you change the footer file, may be enough, too.)
from luci-theme-material.
@hnyman OK, thank you very much.
from luci-theme-material.
I compiled the material theme after your PR openwrt/luci#513 with 0.2.11 and noticed something negative:
I think that the idea of forcing the browser to update style.css and script.js after the theme is updated, is ok on principle, but the effect of the changes in openwrt/luci#513 make style.css and scripts.js to never cache (at least in Firefox). They are always reloaded from the server, for each Luci page refresh (as the link contains the query element "?git...").
That was probably not quite the intention. It overshoots the purpose of forcing an update for the theme.
From performance perspective, loading these style files again and again for each page is unnecessary. I am not sure if forcing the cache-refresh is really needed. It might be better to revert to the original situation, where it is up to the user to force a cache cleanup / style reload, if he notices something rendering wrongly.
from luci-theme-material.
I fix it in version 0.2.13
from luci-theme-material.
I return to the screen width / text size issue:
After the most recent fixes (menu system etc.), I see much too small text for the detail items on two pages:
network / firewall
network / switch
Below are two images from Firefox and one from IE11, where the text is even smaller...
Everything fits now to the screen, but is rather unusable on those two screens :-(
from luci-theme-material.
Okey...
from luci-theme-material.
@hnyman I fix it in version 0.2.15
from luci-theme-material.
Thanks, looks better now.
from luci-theme-material.
Related Issues (20)
- switch tab cannot show port status HOT 5
- Gap between </ul> and <div> in tabbed maps HOT 2
- Cannot satisfy the following dependencies for luci-theme-material HOT 11
- Fail to install luci-theme-material_0.2.18-1_all.ipk HOT 4
- Failed to execute template 'themes/material/header'. attempt to call global 'url' (a nil value) HOT 3
- "Loading" splashscreen is distracting
- Problems on 21:9 screen
- Invalid property value in css breaking left sidebar
- [0.2.19] doesn't shows main screen at all HOT 4
- Switch page doesn't show the "Port status" HOT 1
- Monospace font for textarea elements
- 500 Internal Server Error on header.htm while calling global 'url' HOT 5
- Stuck on loading HOT 3
- How i compile this theme myself?
- Spelling mistakes in English HOT 1
- Display problems (Material theme, IE) HOT 1
- input-textarea initial size not correct
- Style of logout button HOT 1
- MTK WiFi configuration HOT 4
- System Log scroll bars and log screen clipping
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luci-theme-material.