1
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,7 @@
|
||||
// - 兼容后端“/t”作为分段标记:可自动替换为制表符“\t”
|
||||
// - 首段去首个“\t”:若首次正文以一个制表符起始(允许前导空白),可只移除“一个”\t
|
||||
//
|
||||
|
||||
// 暂未使用
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// Created by Mac on 2025/11/12.
|
||||
//
|
||||
|
||||
// 暂未使用
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -255,11 +255,8 @@
|
||||
|
||||
- (void)kb_applyTheme {
|
||||
KBSkinManager *mgr = [KBSkinManager shared];
|
||||
BOOL hasImg = ([mgr currentBackgroundImage] != nil);
|
||||
// UIColor *bg = mgr.current.keyboardBackground;
|
||||
UIColor *bg = [UIColor colorWithHex:0xD1D3DB];
|
||||
self.backgroundColor = hasImg ? [UIColor clearColor] : bg;
|
||||
self.keyboardView.backgroundColor = hasImg ? [UIColor clearColor] : bg;
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
self.keyboardView.backgroundColor = [UIColor clearColor];
|
||||
if ([self.topBar respondsToSelector:@selector(kb_applyTheme)]) {
|
||||
[self.topBar kb_applyTheme];
|
||||
}
|
||||
|
||||
@@ -83,6 +83,10 @@
|
||||
if (CGRectGetHeight(bounds) <= 0 || CGRectGetWidth(bounds) <= 0) {
|
||||
return;
|
||||
}
|
||||
// 有皮肤图时,强制隐藏文字,避免图标与文本叠加
|
||||
if (self.iconView.image != nil) {
|
||||
self.titleLabel.hidden = YES;
|
||||
}
|
||||
self.bottomShadowLayer.frame = CGRectMake(0,
|
||||
CGRectGetHeight(bounds) - shadowHeight,
|
||||
CGRectGetWidth(bounds),
|
||||
|
||||
@@ -41,7 +41,7 @@ static const CGFloat kKBLettersRow2EdgeSpacerMultiplier = 0.5;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame {
|
||||
if (self = [super initWithFrame:frame]) {
|
||||
self.backgroundColor = [KBSkinManager shared].current.keyboardBackground;
|
||||
self.backgroundColor = [UIColor clearColor];
|
||||
_layoutStyle = KBKeyboardLayoutStyleLetters;
|
||||
// 默认小写:与需求一致,初始不开启 Shift
|
||||
_shiftOn = NO;
|
||||
|
||||
Reference in New Issue
Block a user