diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..c2b8e9f0 --- /dev/null +++ b/.editorconfig @@ -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 \ No newline at end of file diff --git a/kiwano/2d/DebugNode.cpp b/kiwano/2d/DebugNode.cpp index 0153fe9f..7e221142 100644 --- a/kiwano/2d/DebugNode.cpp +++ b/kiwano/2d/DebugNode.cpp @@ -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); }); }