Coder Social home page Coder Social logo

pixate / pixate-freestyle-ios Goto Github PK

View Code? Open in Web Editor NEW
848.0 848.0 135.0 45.98 MB

Pixate Freestyle for iOS

License: Apache License 2.0

Ruby 0.09% JavaScript 1.74% CSS 5.31% Shell 1.36% Objective-C 84.96% C 0.26% EmberScript 0.23% Perl 0.04% C++ 0.06% HTML 5.94%

pixate-freestyle-ios's People

Contributors

angelolloqui avatar bobspace avatar debreuil avatar dmaclach avatar iweaverman avatar justinbelcher avatar nuthinking avatar paulofaria avatar paulz avatar thelonious avatar vguerci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixate-freestyle-ios's Issues

Better structure by using viewController class names

(From user seivan)

I think Pixate and non-DOM design could do well by introducing some practices of their own that would find the native style software development (compared to say DOM and HTML).

One practice that I use here is to set the name of the class of each controller on its view styleId and the name of the super class as its styleClass.

That way I can have @import 'includes/controllers/*'; in my default.css.scss.

The purpose is that you might have a viewController OR a set of viewControllers that might have different button design.

One sample is for instance our signup progress or our on boarding process.
All signup views inherit from a signup super class.

That way I can do

#XXXSignUpSuperViewController {
   .button {  
      border-radius: inherit; 
    }
}

armv7s not included in framework

File is universal (4 slices) but does not contain a(n) armv7s slice: 
Pods/PixateFreestyle/PixateFreestyle.framework/PixateFreestyle 
file Pods/PixateFreestyle/PixateFreestyle.framework/PixateFreestyle' for architecture armv7s

Optimize Vector Graphics Rendering

There are probably some opportunities to optimize our vector graphics rendering. This ticket is here to capture some thoughts that will need further research. That research should give us an idea of the best approach we can use to optimize rendering while allowing good flexibility to our end users allowing them to modify and augment our rendering:

Allow styling info to be cached

Currently, we collect the declarations to apply to a given styleable, for all states the styleable supports. That gives us an opportunity to cache this information. However, for now, we simply apply the style info right away.

We will have to consider how best to implement this functionality. Initial thoughts are that we can store style info in an NSCache, keyed by the styleable. We need a way to invalidate cache entries if a style info contains a declaration pointing to a stylesheet that has been reloaded or is no longer active/valid.

NSCache allows for a delegate. This delegate can be used to know when items are being pushed out of the cache. We may want to consider serializing the style info to disk, temporarily per run, or even permanently between runs. However, we need to determine if it's faster to calculate styles or to deserialize style info from disk.

We also have the ability to store style info for an entire sub-tree. This is particularly helpful with table view cells and collection view cells. However, this could be applied to other sub-trees. This might turn out to be useful for statically styled sub-trees.

Update UITabBarItem styling to drop use of deprecated API

The framework is using "[setFinishedSelectedImage: withFinishedUnselectedImage]" to set the selected and unselected states of a tab-bar-item. According to the docs, this has been deprecated in iOS 7. We should use image and selectedImage with UIImageRenderingModeAlwaysOriginal instead.

Note: UIImageRenderingModeAlwaysOriginal is only avail on iOS 7

Use of attributed and non-attributed properties at the same time

If the user places some properties in the top level object and some other ones in the attributed-text child, the attributed-text settings override the base settings, but if a value like color isn't set in the attributed-text version, then color is lost, for example.

Generated images are non-opaque by default

If there is no border radius or alpha, generated images should be opaque.

perhaps also add a background property...

opaque: true [background color] that allows user to specify the color that the transparent areas become (when flatting an image that has opacity)

Add support for styling UIAlertView

Need to add support for styling this view, not so much to style it, but to allow it to also be in a not() group for non-styling (ie. style all labels except those that are in an UIAlertView).

Rename PXStylerContext.color

To better clarify it's usage, we should rename PXStylerContext.color to backgroundColor. The PXColorStyler and PXPaintStyler use our catch-all mechanism to add "color" properties. We should create a new "color" property for those stylers after this one has been renamed

CSS styles are not being applied for UITableCell

This does not work:

userCell text-label {

font-family: Comfortaa;
font-size: 20;

}

userCell detail-text-label {

font-family: Comfortaa;
font-size: 16;
color: red;

}

This one does not work as well:

userCell text-label attributed-text {

font-family: Comfortaa;
font-size: 20;

}

userCell detail-text-label attributed-text {

font-family: Comfortaa;
font-size: 16;
color: red;

}

Allow use of PS font names in font-family property

If a user is using "WhitneyCondensed-Bold", they have to use the following CSS:

font-family: "Whitney Condensed";
font-stretch: condensed;
font-weight: bold;

It's a little challenging to determine that. So, we should allow the following:

font-family: "WhitneyCondensed-Bold";

We also have cases where there are ambiguities between what is specified in CSS and what PS names those map to. This would allow those cases to be disambiguated

Transition support for attributed string

I was hoping to animate an attributedString like so. Is there support for this yet?

  label.name {
    attributed-text {
      transition: letter-spacing 1s linear;
      font-size: 14pt;
      letter-spacing: 1.8;
    }
    &.navigationbar-title {
      attributed-text {
        letter-spacing: 0.5;
      }
    }
  }

Unable to set icon for UIButton selected state

The following CSS does not work:

#gpbutton:selected icon{  
    background-image: url(logo-gplus-white.png);  
    background-size: 20px;  
}  
#gpbutton:normal icon{  
    background-image: url(logo-gplus.png);  
    background-size: 20px;  
}

This is due to the fact that the framework processes pseudo-classes on the last element only. We need to make an exception for virtual children to allow this case to work properly.

Use current font-size of View when font-size not specified in CSS

Currently, we default to 16pt as our font size, if none is specified in CSS. This causes styling that sets font properties, not including font-size, to change the size of the font in the view. Pixate should try to preserve current settings when none are provided.

FileWatcher does not work with @import

FileWatcher is able to monitor files; however, if a file is imported from another CSS, we need to reload that parent CSS file when the imported file changes.

Another issue with iOS6

iOS 6

Crashed: com.apple.root.default-priority
EXC_BREAKPOINT UNKNOWN at 0xe7ffdefe

Thread : Crashed: com.apple.root.default-priority
0 ??? 0x2fe2f0c4
1 ??? 0x2fe2fef3
2 ??? 0x2fe31644
3 libdyld.dylib 0x3ae771fc dyld_stub_binder + 20
4 GRR 0x0044164d -[PXEllipticalArc initWithCx:cy:radiusX:radiusY:startingAngle:endingAngle:]
5 GRR 0x0044157f CGPathAddEllipticalArc
6 GRR 0x003fbd1d -[PXRectangle newPath]
7 GRR 0x00436e8d -[PXShape path]
8 GRR 0x004373cd -[PXShape render:]
9 GRR 0x00437585 -[PXShape renderToImageWithBounds:withOpacity:]
10 GRR 0x00442a8d -[PXStylerContext backgroundImage]
11 GRR 0x0041cef5 +[UIBarButtonItem(PXStyling) UpdateStyleWithRuleSetHandler:context:target:]
12 GRR 0x0041ce39 -[UIBarButtonItem(PXStyling) updateStyleWithRuleSet:context:]
13 GRR 0x003fd801 -[PXStyleInfo applyToStyleable:]
14 GRR 0x0041f85f +[PXStyleUtils updateStyleForStyleable:]
15 GRR 0x0041f9cf +[PXStyleUtils updateStylesForStyleable:andDescendants:]
16 GRR 0x0043447f -[UIBarItem(PXStyling) setStyleClass:]
17 GRR 0x010d5873 -RTPSPDFActionBarButtonItem initWithPDFViewController:
18 GRR 0x010de6e1 -RTGRRDocumentsViewController init
19 GRR 0x010cfd93 __32-[RTGRRItemsViewController init]_block_invoke55 (RTGRRItemsViewController.m:85)
20 libdispatch.dylib 0x3ae5811f _dispatch_call_block_and_release + 10
21 libdispatch.dylib 0x3ae5c961 _dispatch_root_queue_drain + 252
22 libdispatch.dylib 0x3ae5cac1 _dispatch_worker_thread2 + 84
23 libsystem_c.dylib 0x3ae8ca11 _pthread_wqthread + 360

css
.action-text {
font-family: Comfortaa;
font-weight: bold;
font-size : 20px;
color: red;
background-color: green;

border-radius   : 5px;
border-width    : 1px;
border-color    : white;
border-style    : solid;

}

Using updateStyles to force style on a PXStyleable to get the updated frame

I have a UILabel that is being styled using the attributed-text property. I need to grab the updated frame after the styles are applied. Since Im in a layoutSubviews while checking this, I wanted to force an early styling with -updateStyles, but the frame appears to be the same even after calling this, but the actual frame should be wider (and is later in the lifecylce).

Cannot set border-style on UITextField properly

UITextFields have their own 'border-style' property (border-style: none | line | bezel | rounded-rect), which is conflicting with the generic border-style property. Thus, unless the iOS-specific border style is set in IB, the border style property in the CSS won't work properly.

Setting both 'selected' and 'highlighted' states

According to reference there're pseudoclasses which can be assosiated with specific states:
There're 4 pseudo-states for 'ubutton'control, such as
drawRubber icon { }
drawRubber icon:highlighted { }
drawRubber icon:Selected { }
drawRubber icon:highlighted selected { }
The last one, when set, wouldn't work. How can I set both 'selected' and 'highlighted' states

Map callout popover can not be configured

In map views, we can easily customize the annotations as explained here:
http://www.pixate.com/blog/2012-12-16-mapview-annotations/

However, the callout can not be customized so easily. Basically, what I need is a way to specify different fonts for the title and the subtitle. I have tried this code:

map-view label {
    font-family: $font-regular;
}

This changes the fonts, but both of them. Any idea how can I change them separately? also, the legal attribution label of the map is changed, which is probably not a good idea.

Thanks!

Can not get a license key

Hey Pixate Team,

I wanna get a license key over your website
pixate.com/key

But the site can not be loaded :(
How to get a license key?

Cheers,
Fab

Add ability to turn off layoutSubviews

This ticket exists to capture some thoughts on how we might optimize styling by reducing the amount of tree walking that is occurring.

  • Use plist to set the default value for pxStyleMode
  • If style mode is off, then we may be able to prevent sub-classing
  • Minimally, we should simply call [super layoutSubviews] and exit if the style mode is none
  • I think we are now doing too much work walking virtual children. Perhaps we should revert back to having the application of styling also applying styles to virtual children as before. We removed that because we're getting duplicate styling

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.