Tighten new editor shell chrome and add dock convergence plan
This commit is contained in:
@@ -16,10 +16,10 @@ using ::XCEngine::UI::UIRect;
|
||||
using ::XCEngine::UI::Layout::ArrangeUITabStrip;
|
||||
using ::XCEngine::UI::Layout::MeasureUITabStripHeaderWidth;
|
||||
|
||||
constexpr float kTabRounding = 7.0f;
|
||||
constexpr float kStripRounding = 8.0f;
|
||||
constexpr float kHeaderFontSize = 13.0f;
|
||||
constexpr float kCloseFontSize = 11.0f;
|
||||
constexpr float kTabRounding = 0.0f;
|
||||
constexpr float kStripRounding = 0.0f;
|
||||
constexpr float kHeaderFontSize = 11.0f;
|
||||
constexpr float kCloseFontSize = 10.0f;
|
||||
|
||||
float ClampNonNegative(float value) {
|
||||
return (std::max)(value, 0.0f);
|
||||
@@ -35,17 +35,17 @@ bool IsPointInsideRect(
|
||||
}
|
||||
|
||||
float ResolveStripRounding(const UIEditorTabStripMetrics& metrics) {
|
||||
return (std::max)(
|
||||
(std::min)(ClampNonNegative(metrics.layoutMetrics.headerHeight) * 0.25f, kStripRounding),
|
||||
0.0f);
|
||||
(void)metrics;
|
||||
return kStripRounding;
|
||||
}
|
||||
|
||||
float ResolveTabRounding(const UIEditorTabStripMetrics& metrics) {
|
||||
return (std::max)(ResolveStripRounding(metrics) - 1.0f, 0.0f);
|
||||
(void)metrics;
|
||||
return kTabRounding;
|
||||
}
|
||||
|
||||
float ResolveCloseButtonRounding(const UIEditorTabStripMetrics& metrics) {
|
||||
return (std::min)(ClampNonNegative(metrics.closeButtonExtent) * 0.35f, 5.0f);
|
||||
return (std::min)(ClampNonNegative(metrics.closeButtonExtent) * 0.2f, 2.0f);
|
||||
}
|
||||
|
||||
std::size_t ResolveSelectedIndex(
|
||||
|
||||
Reference in New Issue
Block a user