Skip to content

Commit

Permalink
Make alpha=0 available
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Liu authored and Leo Liu committed May 27, 2022
1 parent 54f3d57 commit 1452191
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ RIME_LIB_DIR = librime/dist/lib
RIME_LIBRARY_FILE_NAME = librime.1.dylib
RIME_LIBRARY = lib/$(RIME_LIBRARY_FILE_NAME)

RIME_DEPS = librime/thirdparty/lib/libcapnp.a \
librime/thirdparty/lib/libmarisa.a \
librime/thirdparty/lib/libleveldb.a \
librime/thirdparty/lib/libopencc.a \
librime/thirdparty/lib/libyaml-cpp.a
RIME_DEPS = librime/lib/libcapnp.a \
librime/lib/libmarisa.a \
librime/lib/libleveldb.a \
librime/lib/libopencc.a \
librime/lib/libyaml-cpp.a
PLUM_DATA = bin/rime-install \
data/plum/default.yaml \
data/plum/symbols.yaml \
Expand All @@ -27,7 +27,7 @@ OPENCC_DATA = data/opencc/TSCharacters.ocd2 \
SPARKLE_FRAMEWORK = Frameworks/Sparkle.framework
DEPS_CHECK = $(RIME_LIBRARY) $(PLUM_DATA) $(OPENCC_DATA) $(SPARKLE_FRAMEWORK)

OPENCC_DATA_OUTPUT = librime/thirdparty/share/opencc/*.*
OPENCC_DATA_OUTPUT = librime/share/opencc/*.*
PLUM_DATA_OUTPUT = plum/output/*.*
RIME_PACKAGE_INSTALLER = plum/rime-install

Expand All @@ -40,7 +40,7 @@ $(RIME_LIBRARY):
$(MAKE) librime

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

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

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

copy-plum-data:
Expand Down
3 changes: 2 additions & 1 deletion SquirrelPanel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,8 @@ +(void)updateTheme:(SquirrelTheme *)theme withConfig:(SquirrelConfig *)config fo
CGFloat labelFontSize = [config getDouble:@"style/label_font_point"];
NSString *commentFontName = [config getString:@"style/comment_font_face"];
CGFloat commentFontSize = [config getDouble:@"style/comment_font_point"];
CGFloat alpha = fmin(fmax([config getDouble:@"style/alpha"], 0.0), 1.0);
NSNumber *alphaValue = [config getOptionalDouble:@"style/alpha"];
CGFloat alpha = alphaValue ? fmin(fmax(alphaValue.doubleValue, 0.0), 1.0) : 1.0;
CGFloat cornerRadius = [config getDouble:@"style/corner_radius"];
CGFloat hilitedCornerRadius = [config getDouble:@"style/hilited_corner_radius"];
CGFloat surroundingExtraExpansion = [config getDouble:@"style/surrounding_extra_expansion"];
Expand Down
2 changes: 1 addition & 1 deletion librime
Submodule librime updated 71 files
+44 −0 .github/ISSUE_TEMPLATE/bug-report.md
+2 −0 .github/ISSUE_TEMPLATE/config.yml
+20 −0 .github/ISSUE_TEMPLATE/feature-request.md
+24 −0 .github/pull-request-template.md
+134 −0 .github/workflows/commit-ci.yml
+145 −0 .github/workflows/release-ci.yml
+5 −7 .gitignore
+6 −9 .gitmodules
+0 −48 .travis.yml
+6 −10 CMakeLists.txt
+0 −8 Dockerfile
+10 −6 Makefile
+9 −9 README-mac.md
+3 −3 README-windows.md
+8 −8 README.md
+3 −5 action-install-linux.sh
+3 −7 action-install-plugins-macos.sh
+23 −0 action-install-plugins-windows.bat
+0 −30 appveyor.install.bat
+0 −74 appveyor.yml
+0 −46 appveyor_build_boost.bat
+0 −38 appveyor_build_thirdparty.bat
+0 −0 bin/.placeholder
+73 −78 build.bat
+1 −1 data/minimal/symbols.yaml
+11 −21 deps.mk
+0 −0 deps/CMakeLists.txt
+0 −0 deps/glog
+0 −0 deps/googletest
+0 −0 deps/leveldb
+0 −0 deps/marisa-trie
+0 −0 deps/opencc
+0 −0 deps/yaml-cpp
+1 −1 env.bat.template
+1 −1 env.vs2017_xp.bat
+1 −1 env.vs2019.bat
+15 −0 env.vs2022.bat
+0 −0 include/COPYING.darts-clone
+0 −0 include/X11/keysym.h
+0 −0 include/X11/keysymdef.h
+0 −0 include/darts.h
+0 −0 include/msvc/stdint.h
+0 −0 include/utf8.h
+0 −0 include/utf8/checked.h
+0 −0 include/utf8/core.h
+0 −0 include/utf8/unchecked.h
+19 −0 install-boost.bat
+22 −13 install-boost.sh
+0 −0 lib/.placeholder
+1 −3 plugins/plugins_module.cc
+0 −22 proto/CMakeLists.txt
+0 −57 proto/rime_proto.capnp
+0 −0 share/.placeholder
+1 −3 src/CMakeLists.txt
+2 −2 src/rime/candidate.h
+0 −3 src/rime/composition.cc
+2 −2 src/rime/context.cc
+5 −16 src/rime/gear/chord_composer.cc
+10 −4 src/rime/gear/editor.cc
+6 −6 src/rime/gear/script_translator.cc
+4 −4 src/rime/gear/table_translator.cc
+11 −10 src/rime/switcher.cc
+92 −205 src/rime_api.cc
+1 −1 src/rime_api.h
+ thirdparty/bin/curl.exe
+0 −1 thirdparty/src/capnproto
+0 −16 tools/CMakeLists.txt
+0 −9 tools/rime_message.capnp
+0 −224 tools/rime_proto_console.cc
+0 −6 travis-install-osx.sh
+11 −7 xcode.mk

0 comments on commit 1452191

Please sign in to comment.