add .editorconfig

mionr
This commit is contained in:
Nomango 2019-08-05 00:12:47 +08:00 committed by Nomango
parent dfb9ba4a33
commit be3a8602c5
2 changed files with 24 additions and 3 deletions

23
.editorconfig Normal file
View File

@ -0,0 +1,23 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{h,hpp,cpp}]
charset = gb2312
# 4 space indentation
indent_style = space
indent_size = 4
# Matches the exact files
[*.{json,xml}]
indent_style = space
indent_size = 2

View File

@ -50,9 +50,7 @@ namespace kiwano
style.line_spacing = 20.f;
debug_text_->SetStyle(style);
AddListener(Event::MouseHover, [=](const Event&) {
SetOpacity(0.4f);
});
AddListener(Event::MouseHover, [=](const Event&) { SetOpacity(0.4f); });
AddListener(Event::MouseOut, [=](const Event&) { SetOpacity(1.f); });
}