Skip to content

Commit f5f2d73

Browse files
committed
Button styling changes
1 parent 0d1db2b commit f5f2d73

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Content.Client/_Starlight/Chemistry/UI/ModernChemMasterWindow.xaml.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,9 @@ private static Button[] BuildPillTypeButtons(GridContainer grid, SpriteSystem sp
248248
for (uint i = 0; i < buttons.Length; i++)
249249
{
250250
var styleBase = StyleClass.ButtonOpenBoth;
251-
var modulo = i % 10;
252-
if (i > 0 && modulo == 0)
253-
styleBase = StyleClass.ButtonOpenRight;
254-
else if (i > 0 && modulo == 9)
251+
if (i == 9)
255252
styleBase = StyleClass.ButtonOpenLeft;
256-
else if (i == 0)
253+
else if (i == 10)
257254
styleBase = StyleClass.ButtonOpenRight;
258255

259256
buttons[i] = new Button

0 commit comments

Comments
 (0)