Skip to content

Commit

Permalink
feat(config): alias style/layout/border_width to style/layout/border
Browse files Browse the repository at this point in the history
  • Loading branch information
nameoverflow committed Feb 24, 2018
1 parent e061d4d commit 013eefe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,9 @@ static void _UpdateUIStyle(RimeConfig* config, weasel::UI* ui, bool initialize)
}
RimeConfigGetInt(config, "style/layout/min_width", &style.min_width);
RimeConfigGetInt(config, "style/layout/min_height", &style.min_height);
RimeConfigGetInt(config, "style/layout/border", &style.border);
if (!RimeConfigGetInt(config, "style/layout/border", &style.border)) {
RimeConfigGetInt(config, "style/layout/border_width", &style.border);
}
RimeConfigGetInt(config, "style/layout/margin_x", &style.margin_x);
RimeConfigGetInt(config, "style/layout/margin_y", &style.margin_y);
RimeConfigGetInt(config, "style/layout/spacing", &style.spacing);
Expand Down

0 comments on commit 013eefe

Please sign in to comment.