Skip to content

Commit

Permalink
Revert TSM to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
DHowett committed Dec 11, 2020
1 parent 6604883 commit 81a50de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,4 +214,4 @@
</Target>

<Import Project="$(SolutionDir)build\rules\CollectWildcardResources.targets" />
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@
<UniqueIdentifier>{81a6314f-aa5b-4533-a499-13bc3a5c4af0}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>
</Project>
3 changes: 2 additions & 1 deletion src/cascadia/TerminalSettingsModel/Profile.idl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ namespace Microsoft.Terminal.Settings.Model
All = 0xffffffff
};

[flags] enum ConvergedAlignment {
[flags]
enum ConvergedAlignment {
// low 4 bits are the horizontal
Horizontal_Center = 0x00,
Horizontal_Left = 0x01,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ JSON_FLAG_MAPPER(::winrt::Microsoft::Terminal::Settings::Model::BellStyle)

JSON_ENUM_MAPPER(::winrt::Microsoft::Terminal::Settings::Model::ConvergedAlignment)
{
// reduce repetition
static constexpr std::array<pair_type, 9> mappings = {
pair_type{ "center", ValueType::Horizontal_Center | ValueType::Vertical_Center },
pair_type{ "topLeft", ValueType::Horizontal_Left | ValueType::Vertical_Top },
Expand Down Expand Up @@ -167,7 +168,7 @@ struct ::Microsoft::Terminal::Settings::Model::JsonUtils::ConversionTrait<::winr
}

::winrt::Windows::UI::Text::FontWeight weight{
static_cast<uint16_t>(std::clamp(value, 1u, 999u))
static_cast<uint16_t>(std::clamp(value, 100u, 990u))
};
return weight;
}
Expand Down

0 comments on commit 81a50de

Please sign in to comment.