mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-30 08:12:40 +00:00
7860d46996
- Rename VectorDesignValues with RiotDesignValues
58 lines
1.9 KiB
Objective-C
58 lines
1.9 KiB
Objective-C
/*
|
|
Copyright 2015 OpenMarket Ltd
|
|
Copyright 2017 Vector Creations Ltd
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
#import <MatrixKit/MatrixKit.h>
|
|
|
|
/**
|
|
Convert a RGB hexadecimal value into a UIColor.
|
|
*/
|
|
#define UIColorFromRGB(rgbValue) \
|
|
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
|
|
green:((float)((rgbValue & 0x00FF00) >> 8))/255.0 \
|
|
blue:((float)((rgbValue & 0x0000FF) >> 0))/255.0 \
|
|
alpha:1.0]
|
|
|
|
#pragma mark - Riot Colors
|
|
extern UIColor *kRiotColorGreen;
|
|
extern UIColor *kRiotColorLightGreen;
|
|
extern UIColor *kRiotColorLightGrey;
|
|
extern UIColor *kRiotColorSilver;
|
|
extern UIColor *kRiotColorOrange;
|
|
extern UIColor *kRiotColorPinkRed;
|
|
extern UIColor *kRiotColorRed;
|
|
|
|
#pragma mark - Riot Text Colors
|
|
extern UIColor *kRiotTextColorBlack;
|
|
extern UIColor *kRiotTextColorDarkGray;
|
|
extern UIColor *kRiotTextColorGray;
|
|
|
|
#pragma mark - Riot Navigation Bar Tint Color
|
|
extern UIColor *kRiotNavBarTintColor;
|
|
|
|
#pragma mark - Riot Standard Room Member Power Level
|
|
extern NSInteger const kRiotRoomModeratorLevel;
|
|
extern NSInteger const kRiotRoomAdminLevel;
|
|
|
|
/**
|
|
`RiotDesignValues` class manages the Riot design parameters
|
|
*/
|
|
@interface RiotDesignValues : NSObject
|
|
|
|
// to update the navigation bar buttons color
|
|
// [[AppDelegate theDelegate] recentsNavigationController].navigationBar.tintColor = [UIColor greenColor];
|
|
|
|
@end
|