Comments (9)
PRs are always welcome :)
from twui.
Oh, but it would be an extremely large change that might interrupt the workflow of others, so I think it'd be better to ask around first. -And the Core Layout one is ready.
from twui.
It seems like it'd be pretty centralized to TUIImage, right?
I'll be honest, I'm not sure I see the dire need but I wouldn't be opposed to it for those who'd prefer vector assets.
from twui.
Yeah, the core is built into TUIImage, but I've built it for ease-of-use into all the buttons and controls and whatnot. I could just PR for the TUIImage that supports vectors, and I guess that could work for now?
I just think it's a LOT easier than going bitmap mode with @2x pngs and all.
from twui.
I'm no fan of these bloated @2x pngs, but vectors have downsides also. Loading and drawing is slower, and you have to be very careful about landing on half pixels. Designers also need to use a different workflow to generate assets. Think it's awesome to support, as long as people who use it know the tradeoffs.
from twui.
Alright then, I'll strip it down into a TUIImage category, and TwUI developers can use if it they wish. @joshaber Core Layout is pretty much ready too - i've fixed the bugs and removed the comment block.
from twui.
It's also worth nothing that in Mac OS X land, Retina support is typically done with multirepresentational TIFFs. Xcode squashes @2x images down into a TIFF by default. Supporting that, in my mind, is much more important than vector support.
from twui.
Whoah, I think I may have just overlooked all of that. Xcode 4.3 even asks me if I want to do that. How did I not notice? Interesting, I think after Core Layout's done, i'll be patching in multi-rep TIFF (I'll check this out very shortly) and PDF/AI support (Yeah, drag and drop illustrator files work!).
from twui.
Pushed to my fork, and it should show up in the yet-un-pulled pull request. I'm still looking into TIFF support, so if someone could link me as to where this is mentioned, I'd be glad to add support for it.
from twui.
Related Issues (20)
- TUITableView cell queue fix HOT 2
- TUIControl tracking and events HOT 2
- TUIImage for animated gif? HOT 3
- Dictionary popup of TUITextRenderer does not work on 10.7.3? HOT 11
- Lots of commits recently... time to spin a new release? HOT 2
- compile error HOT 2
- A "getting started" guide would be great HOT 12
- TUIPopover issues HOT 5
- Goal of twui ? HOT 2
- Core Layout HOT 7
- Missing features + updates HOT 3
- UIKit / iOS support? HOT 7
- Appearances
- Table view cell drawing not updated correctly. HOT 1
- Crash when window is released
- TUIScrollView - Indicators not visible while dragging when set to show while scrolling HOT 1
- TUILabel - jagged text when background color is clearColor HOT 3
- TUIImage imageName could not accept image name without extention
- Scroll View in reverse? HOT 1
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 twui.