oskargroth / flatbutton Goto Github PK
View Code? Open in Web Editor NEWLayer based NSButton with Interface Builder styling options
Home Page: https://www.cindori.org
License: MIT License
Layer based NSButton with Interface Builder styling options
Home Page: https://www.cindori.org
License: MIT License
How to handle button colours with dark mode ?
Could you please create a new release so that it is possible to get the latest updates via Carthage?
The current release does not contain the changes to the access level of FlatButton...
Using named dynamic colours works in terms of changing the colour when the button is first drawn.
however - the button should also recognise a change in dark mode and re-draw itself
Hi, the master branch uses an outdated Swift version - to fix this, I tried to manually download and use the 1.1.1 tagged .swift file but there's issues, notably the button doesn't appear until clicked, and the title is invisible. Am I doing something wrong or is this repo not ready for this yet? :) Thanks!
I am running into the following error when trying to install FlatButton using CocoaPods
[!] The platform of the target `Test` (iOS 10.0) is not compatible with `FlatButton (0.0.9)`, which does not support `ios`.
Any advice on how to resolve this error?
When assigning a shortcut key to a button, and the key is pressed, the button doesn not momentarily highlight.
As well, after a key press, the button will toggle on if clicked and toggle momentarily off with future clicks.
After a subsequent key press, the button toggles off if clicked.
Hi I am new to this mac-programming.
I would like to looking for objective-c version of these project.
What I work on, i need objective-c version. And I can't find the proper function of these code.
Several compilation issues on Xcode 14 and after the fixes, the button content size is not set to the right path.
can not use in swift 4.0
When's the new version?
You component is good, only problem is it don't have disable mode, or let me know if there is any way to disable it.
Hey,
Every time I try and customise the buttons, the default setting when the view loads is a hidden button. When pressed, the color and style is applied to the button.
When the button has text, the button is hidden.
I have loaded version 1.4, use swift 4.
when set font size , vertical has not reset.
and add code
titleRect.origin.y = round((bounds.height - size.height)/2)
in func setupTitle() can solve the problem.
action outlet how to setting ? plase~ thank~
This pod could use an update to the new Swift API.
.sizeWithAttributes(attributes)
-> size(withAttributes: attributes)
, etc.etc.
Podfile
use_frameworks!
target 'test' do
platform :osx, '10.13'
pod 'FlatButton'
end
Terminal
$ pod install
Analyzing dependencies
Downloading dependencies
Installing FlatButton (1.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Notice that CocoaPods installs version 1.2 although version 1.4 is the latest release. I assume you have to update the master repo?
https://github.com/CocoaPods/Specs/tree/master/Specs/9/7/f/FlatButton
Thank you!
As a workaround for others, you can specify this repo in the podfile directly. This will install the latest version.
pod 'FlatButton', :git => 'https://github.com/OskarGroth/FlatButton.git'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.