Skip to content

Commit

Permalink
UI improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
groverlynn committed Oct 6, 2023
2 parents 452d601 + f406b9a commit 0301a56
Show file tree
Hide file tree
Showing 17 changed files with 2,806 additions and 1,548 deletions.
3 changes: 2 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "librime"]
path = librime
url = https://github.com/rime/librime.git
url = https://github.com/groverlynn/librime.git
branch = choose
ignore = dirty
[submodule "plum"]
path = plum
Expand Down
16 changes: 9 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ Choose one of the following options.
``` sh
export BUILD_UNIVERSAL=1

make -C librime xcode/deps/boost
export BOOST_ROOT="$(pwd)/librime/deps/boost_1_83_0"

export BOOST_ROOT="$(pwd)/librime/deps/boost_1_78_0"
export CMAKE_GENERATOR=Ninja

bash librime/install-boost.sh
```

Let's set `BUILD_UNIVERSAL` to tell `make` that we are building Boost as
Expand Down Expand Up @@ -109,11 +111,11 @@ make
To build only for the native architecture, and/or specify the lowest supported macOS version, pass variable `ARCHS`/`MACOSX_DEPLOYMENT_TARGET` to `make`:

``` sh
# for Universal macOS App, targetting Ventura
make ARCHS='arm64 x86_64'
# for Universal macOS App
make ARCHS='arm64 x86_64' MACOSX_DEPLOYMENT_TARGET='10.14'

# for ARM macOS App, targetting Ventura
make ARCHS='arm64'
# for Intel-based Mac
make ARCHS='x86_64' MACOSX_DEPLOYMENT_TARGET='10.09'
```

## Install it on your Mac
Expand All @@ -123,7 +125,7 @@ make ARCHS='arm64'
Just add `package` after `make`

```
make package ARCHS='arm64'
make package ARCHS='arm64' MACOSX_DEPLOYMENT_TARGET='10.14'
```

Define or echo `DEV_ID` to automatically handle code signing and [notarization](https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution) (Apple Developer ID needed)
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
all: release
install: install-release

# Change to `xcode/dist-with-icu` if boost is linked to icu libraries.
RIME_DIST_TARGET = xcode/dist
# Change to `dist-with-icu` if boost is linked to icu libraries.
RIME_DIST_TARGET = install

RIME_BIN_DIR = librime/dist/bin
RIME_LIB_DIR = librime/dist/lib
Expand Down Expand Up @@ -39,7 +39,7 @@ $(RIME_LIBRARY):
$(MAKE) librime

$(RIME_DEPS):
$(MAKE) -C librime xcode/deps
$(MAKE) -C librime deps

librime: $(RIME_DEPS)
$(MAKE) -C librime $(RIME_DIST_TARGET)
Expand Down Expand Up @@ -67,7 +67,7 @@ plum-data:
$(MAKE) copy-plum-data

opencc-data:
$(MAKE) -C librime xcode/deps/opencc
$(MAKE) -C librime deps/opencc
$(MAKE) copy-opencc-data

copy-plum-data:
Expand Down Expand Up @@ -170,5 +170,5 @@ clean:

clean-deps:
$(MAKE) -C plum clean
$(MAKE) -C librime xcode/clean
$(MAKE) -C librime clean
$(MAKE) clean-sparkle
22 changes: 12 additions & 10 deletions SquirrelApplicationDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@class SquirrelConfig;
@class SquirrelPanel;
@class SquirrelOptionSwitcher;

// Note: the SquirrelApplicationDelegate is instantiated automatically as an outlet of NSApp's instance
@interface SquirrelApplicationDelegate : NSObject
Expand All @@ -13,17 +14,18 @@
@property(nonatomic, readonly, strong) SquirrelConfig *config;
@property(nonatomic, readonly) BOOL enableNotifications;

-(IBAction)deploy:(id)sender;
-(IBAction)syncUserData:(id)sender;
-(IBAction)configure:(id)sender;
-(IBAction)openWiki:(id)sender;
- (IBAction)deploy:(id)sender;
- (IBAction)syncUserData:(id)sender;
- (IBAction)configure:(id)sender;
- (IBAction)openWiki:(id)sender;

-(void)setupRime;
-(void)startRimeWithFullCheck:(BOOL)fullCheck;
-(void)loadSettings;
-(void)loadSchemaSpecificSettings:(NSString *)schemaId;
- (void)setupRime;
- (void)startRimeWithFullCheck:(BOOL)fullCheck;
- (void)loadSettings;
- (void)loadSchemaSpecificSettings:(NSString *)schemaId;
- (void)loadSchemaSpecificLabels:(NSString *)schemaId;

@property (nonatomic, readonly) BOOL problematicLaunchDetected;
@property(nonatomic, readonly) BOOL problematicLaunchDetected;

@end

Expand All @@ -34,4 +36,4 @@
@end

// also used in main.m
extern void show_message(const char* msg_text, const char* msg_id);
extern void show_message(const char *msg_text, const char *msg_id);
Loading

0 comments on commit 0301a56

Please sign in to comment.