• Stars
    star
    162
  • Rank 232,284 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A customized NSButton with modern flat style like bootstrap.

SYFlatButton

Build Status License MIT Platform info

Description

A customized NSButton with modern flat style like bootstrap.

Screenshot

Installation

Requirement

macOS 10.12 and above.

Cocoapods

  1. Add pod 'SYFlatButton' to your podfile
  2. Run pod install

Manual

Dragging SYFlatButton.h and SYFlatButton.m to your project.

Usage

Interface Builder

  1. Create a NSButton
  2. Set its Button Style to Square in order to change the button's height
  3. Set its Button Class to SYFlatButton
  4. Config the styles from the inspector

Programmatically

See more customizable style from SYFlatButton.h

SYFlatButton *button = [[SYFlatButton alloc] initWithFrame:CGRectMake(20.0, 20.0, 60.0, 30.0)];
button.title = @"Code";
button.momentary = YES;
button.cornerRadius = 4.0;
button.backgroundNormalColor = [NSColor blueColor];
button.backgroundHighlightColor = [NSColor redColor];
[self.view addSubview:button];

Credit

Inspired by FlatButton.

License

The MIT License.

More Repositories

1

WeChatTweak-macOS

A dynamic library tweak for WeChat macOS - 首款微信 macOS 客户端撤回拦截与多开 🔨
Objective-C
11,158
star
2

Meizi

豆瓣妹子图iOS客户端
Objective-C
791
star
3

AppleReserver

Apple 官方预约命令行监控助手
Swift
370
star
4

QQTweak-macOS

A dynamic library tweak for QQ macOS - QQ macOS 客户端撤回拦截
C
246
star
5

WeChatTweak-CLI

A command line utility to work with WeChatTweak-macOS - WeChatTweak 命令行工具
C
206
star
6

Suohai

Audio input/output source lock/switcher for macOS.
Swift
121
star
7

MJPhotoBrowser

[DEPRECATED] The easiest and lightest way to use PhotoBrowser
Objective-C
106
star
8

SYPhotoBrowser

A cute and lightweight photo browser like Tweetbot3.
Objective-C
80
star
9

Farbox-NexT

A hexo theme NexT for Farbox.
CSS
65
star
10

SYFavoriteButton

An Objective-C version of DOFavoriteButton https://github.com/okmr-d/DOFavoriteButton
Objective-C
64
star
11

WeChatTweak-iOS

A tweak for WeChat iOS.
Logos
61
star
12

SYNavigationDropdownMenu

A lightweight dropdown menu drops underneath navigation bar.
Objective-C
31
star
13

SYMaterialSegue

A custom storyboard segue like the Android Material Animation style.
Objective-C
25
star
14

CocoaWindow

Make NSWindow great again ✨
C
24
star
15

SYNetwork

基于AFNetworking 3.x封装的简单易用的网络操作库
Objective-C
15
star
16

ThunderTweak-macOS

A dynamic library tweak for Thunder.
Makefile
14
star
17

IconMan

Generating iOS/macOS/watchOS icon more easier.
Objective-C
11
star
18

LockMyMac

Lock your Mac using iDevices
Objective-C
8
star
19

MTA

An unofficial MTA SDK pod repository.
Objective-C
7
star
20

Bitcron-NexT

A hexo theme for Bitcron.
CSS
5
star
21

Alfred-Base64ToImage

Alfred workflow decode Base64 string to image.
4
star
22

Meizi-Swift

豆瓣妹子图iOS客户端Swift版
Swift
2
star
23

Raycast-Extensions

Raycast extensions for personal use.
TypeScript
2
star
24

sunnyyoung.github.io

Sunnyyoung's GitHub Page
HTML
2
star