feat(ui): redesign graph plotter header and toolbar into modern 2-row card layout and release v3.1.0

This commit is contained in:
LilDosto 2026-10-29 01:01:27 +03:00
parent dab3a1361f
commit 3b5d8c58c4
8 changed files with 193 additions and 109 deletions

View file

@ -1,4 +1,4 @@
# 📐 ttCalculator v3.0.0
# 📐 ttCalculator v3.1.0
[![GitHub release](https://img.shields.io/github/v/release/LilDosto/ttCalculator?color=brightgreen&label=S%C3%BCr%C3%BCm)](https://github.com/LilDosto/ttCalculator/releases)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
@ -13,11 +13,11 @@ Tüm matematiksel çekirdek, otomatik test paketinden **%100 başarıyla (0 hata
## 🚀 Hızlı Başlangıç & Kurulum
1. **[Releases](https://github.com/LilDosto/ttCalculator/releases/tag/v3.0.0)** sayfasına gidin.
1. **[Releases](https://github.com/LilDosto/ttCalculator/releases/tag/v3.1.0)** sayfasına gidin.
2. İhtiyacınıza göre indirin:
- **`ttCalculator-v3.0.0-Setup.exe` (Önerilen)**: Standart Windows kurulum sihirbazı. Masaüstüne ve Başlat Menüsüne kısayol oluşturur, Denetim Masası / Program Ekle-Kaldır entegrasyonu sağlar.
- **`ttCalculator-v3.1.0-Setup.exe` (Önerilen)**: Standart Windows kurulum sihirbazı. Masaüstüne ve Başlat Menüsüne kısayol oluşturur, Denetim Masası / Program Ekle-Kaldır entegrasyonu sağlar.
- **`ttCalculator.exe`**: Kurulumsuz doğrudan çalıştırılabilen tek dosya taşınabilir (portable) sürüm.
- **`ttCalculator-v3.0.0-win-x64.zip`**: Taşınabilir arşiv paketi.
- **`ttCalculator-v3.1.0-win-x64.zip`**: Taşınabilir arşiv paketi.
3. Çift tıklayarak doğrudan çalıştırın — ek bağımlılık gerektirmez!
---

View file

@ -1,6 +1,6 @@
; Script generated by Antigravity for ttCalculator
#define MyAppName "ttCalculator"
#define MyAppVersion "3.0.0"
#define MyAppVersion "3.1.0"
#define MyAppPublisher "LilDosto"
#define MyAppURL "https://github.com/LilDosto/ttCalculator"
#define MyAppExeName "ttCalculator.exe"
@ -25,7 +25,7 @@ DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile=..\LICENSE
OutputDir=..\Release
OutputBaseFilename=ttCalculator-v3.0.0-Setup
OutputBaseFilename=ttCalculator-v3.1.0-Setup
SetupIconFile=..\Release\logo.ico
Compression=lzma2/ultra64
SolidCompression=yes

View file

@ -26,10 +26,10 @@ namespace MathApp.Controls
this.pnlControls = new Panel();
this.pnlPresets = new FlowLayoutPanel();
this.lblPresets = new Label();
this.btnEx1 = ThemeHelper.CreateExampleChip("sin(x) * x");
this.btnEx2 = ThemeHelper.CreateExampleChip("x³ - 3x");
this.btnEx3 = ThemeHelper.CreateExampleChip("e^(-x²/4)*cos(2x)");
this.btnEx4 = ThemeHelper.CreateExampleChip("1 / (x² - 1)");
this.btnEx1 = ThemeHelper.CreateCompactChip("sin(x) * x");
this.btnEx2 = ThemeHelper.CreateCompactChip("x³ - 3x");
this.btnEx3 = ThemeHelper.CreateCompactChip("e^(-x²/4)*cos(2x)");
this.btnEx4 = ThemeHelper.CreateCompactChip("1 / (x² - 1)");
this.lblEquation = new Label();
this.txtEquation = new TextBox();
@ -39,16 +39,20 @@ namespace MathApp.Controls
this.lblMaxX = new Label();
this.txtMaxX = new TextBox();
this.chkClampRange = new CheckBox();
this.btnPlot = ThemeHelper.CreateActionButton("+ Ekle / Çiz", 100, 27, true);
this.btnPlot = ThemeHelper.CreateActionButton("+ Ekle / Çiz", 96, 27, true);
// Scale & Analysis Toolbar buttons
this.btnZoomXIn = ThemeHelper.CreateActionButton("X Genişlet (+)", 100, 26, false);
this.btnZoomXOut = ThemeHelper.CreateActionButton("X Daralt (-)", 85, 26, false);
this.btnZoomX10 = ThemeHelper.CreateActionButton("X: 10×", 55, 26, false);
this.btnZoomYIn = ThemeHelper.CreateActionButton("Y Genişlet (+)", 100, 26, false);
this.btnZoomYOut = ThemeHelper.CreateActionButton("Y Daralt (-)", 85, 26, false);
this.btnAspect1to1 = ThemeHelper.CreateActionButton("1:1 Oran", 68, 26, false);
this.btnResetView = ThemeHelper.CreateActionButton("Sıfırla", 68, 26, false);
// Scale & Analysis Toolbar buttons (Segmented Style)
this.btnZoomXOut = ThemeHelper.CreateSegmentedButton("X −", 46, 26);
this.btnZoomXIn = ThemeHelper.CreateSegmentedButton("X +", 46, 26);
this.btnZoomX10 = ThemeHelper.CreateSegmentedButton("10×", 42, 26);
this.pnlSep1 = new Panel();
this.btnZoomYOut = ThemeHelper.CreateSegmentedButton("Y −", 46, 26);
this.btnZoomYIn = ThemeHelper.CreateSegmentedButton("Y +", 46, 26);
this.pnlSep2 = new Panel();
this.btnAspect1to1 = ThemeHelper.CreateSegmentedButton("1:1", 46, 26);
this.btnResetView = ThemeHelper.CreateSegmentedButton("Sıfırla", 58, 26);
this.pnlSepMain = new Panel();
this.pnlControlsBorder = new Panel();
this.chkCriticalPoints = new CheckBox();
this.chkInspectMode = new CheckBox();
this.chkShowAsymptotes = new CheckBox();
@ -148,107 +152,135 @@ namespace MathApp.Controls
((System.ComponentModel.ISupportInitialize)(this.tbParamK)).BeginInit();
this.SuspendLayout();
// pnlHeader
// pnlHeader: Spatially balanced, unclipped
this.pnlHeader.Dock = DockStyle.Top;
this.pnlHeader.Height = 50;
this.pnlHeader.Height = 72;
// pnlControls
// pnlControls: Modern Card Container (#111827 / CardBackground)
this.pnlControls.Dock = DockStyle.Top;
this.pnlControls.Height = 108;
this.pnlControls.BackColor = ThemeHelper.SidebarBackground;
this.pnlControls.Padding = new Padding(12, 4, 12, 4);
this.pnlControls.Height = 84;
this.pnlControls.BackColor = Color.FromArgb(17, 24, 39);
this.pnlControls.Padding = new Padding(14, 8, 14, 8);
// Presets
// ==================== ROW 1: Function Input & Quick Presets ====================
int yRow1 = 10;
this.lblEquation.AutoSize = true;
this.lblEquation.ForeColor = ThemeHelper.LightText;
this.lblEquation.Font = new Font("Segoe UI Semibold", 9.5F, FontStyle.Bold);
this.lblEquation.Text = "f(x) =";
this.lblEquation.Location = new Point(14, yRow1 + 3);
this.txtEquation.Location = new Point(56, yRow1);
this.txtEquation.Size = new Size(180, 25);
this.txtEquation.Text = "sin(x)";
this.txtEquation.Font = new Font("Consolas", 10.5F, FontStyle.Bold);
this.txtEquation.BackColor = Color.FromArgb(10, 17, 30);
this.txtEquation.ForeColor = Color.White;
this.txtEquation.BorderStyle = BorderStyle.FixedSingle;
this.chkPolar.Text = "Polar r(θ)";
this.chkPolar.ForeColor = Color.FromArgb(56, 189, 248);
this.chkPolar.Font = new Font("Segoe UI", 9F);
this.chkPolar.Location = new Point(242, yRow1 + 2);
this.chkPolar.Size = new Size(78, 22);
this.lblMinX.AutoSize = true;
this.lblMinX.ForeColor = ThemeHelper.MutedText;
this.lblMinX.Font = new Font("Segoe UI", 9F);
this.lblMinX.Text = "Min:";
this.lblMinX.Location = new Point(326, yRow1 + 3);
this.txtMinX.Location = new Point(358, yRow1);
this.txtMinX.Size = new Size(42, 25);
this.txtMinX.Text = "-10";
this.txtMinX.Font = new Font("Consolas", 9.5F);
this.txtMinX.BackColor = Color.FromArgb(10, 17, 30);
this.txtMinX.ForeColor = Color.White;
this.txtMinX.BorderStyle = BorderStyle.FixedSingle;
this.lblMaxX.AutoSize = true;
this.lblMaxX.ForeColor = ThemeHelper.MutedText;
this.lblMaxX.Font = new Font("Segoe UI", 9F);
this.lblMaxX.Text = "Max:";
this.lblMaxX.Location = new Point(406, yRow1 + 3);
this.txtMaxX.Location = new Point(440, yRow1);
this.txtMaxX.Size = new Size(42, 25);
this.txtMaxX.Text = "10";
this.txtMaxX.Font = new Font("Consolas", 9.5F);
this.txtMaxX.BackColor = Color.FromArgb(10, 17, 30);
this.txtMaxX.ForeColor = Color.White;
this.txtMaxX.BorderStyle = BorderStyle.FixedSingle;
this.chkClampRange.Text = "Kısıtla";
this.chkClampRange.ForeColor = ThemeHelper.LightText;
this.chkClampRange.Font = new Font("Segoe UI", 9F);
this.chkClampRange.Location = new Point(488, yRow1 + 2);
this.chkClampRange.Size = new Size(64, 22);
this.btnPlot.Location = new Point(558, yRow1 - 1);
// Presets (Quick Chips)
this.lblPresets.Text = "Hızlı:";
this.lblPresets.AutoSize = true;
this.lblPresets.ForeColor = ThemeHelper.MutedText;
this.lblPresets.Font = new Font("Segoe UI Semibold", 8.5F, FontStyle.Bold);
this.lblPresets.Margin = new Padding(0, 4, 6, 0);
this.pnlPresets.Location = new Point(14, 4);
this.pnlPresets.Size = new Size(950, 28);
this.pnlPresets.Location = new Point(668, yRow1);
this.pnlPresets.Size = new Size(460, 26);
this.pnlPresets.BackColor = Color.Transparent;
this.pnlPresets.Controls.Add(this.lblPresets);
this.pnlPresets.Controls.Add(this.btnEx1);
this.pnlPresets.Controls.Add(this.btnEx2);
this.pnlPresets.Controls.Add(this.btnEx3);
this.pnlPresets.Controls.Add(this.btnEx4);
int yRow1 = 36;
this.lblEquation.AutoSize = true;
this.lblEquation.ForeColor = ThemeHelper.LightText;
this.lblEquation.Font = new Font("Segoe UI Semibold", 9.5F, FontStyle.Bold);
this.lblEquation.Text = "f(x) =";
this.lblEquation.Location = new Point(14, yRow1 + 4);
// ==================== ROW 2: Axis Navigation & Live Analysis ====================
int yRow2 = 46;
this.btnZoomXOut.Location = new Point(14, yRow2);
this.btnZoomXIn.Location = new Point(62, yRow2);
this.btnZoomX10.Location = new Point(110, yRow2);
this.txtEquation.Location = new Point(56, yRow1);
this.txtEquation.Size = new Size(210, 25);
this.txtEquation.Text = "sin(x)";
this.txtEquation.Font = new Font("Consolas", 10.5F, FontStyle.Bold);
this.txtEquation.BackColor = ThemeHelper.CardBackground;
this.txtEquation.ForeColor = Color.White;
this.txtEquation.BorderStyle = BorderStyle.FixedSingle;
this.pnlSep1.Location = new Point(158, yRow2 + 2);
this.pnlSep1.Size = new Size(1, 22);
this.pnlSep1.BackColor = ThemeHelper.BorderColor;
this.chkPolar.Text = "Polar r(θ)";
this.chkPolar.ForeColor = Color.FromArgb(56, 189, 248);
this.chkPolar.Location = new Point(272, yRow1 + 3);
this.chkPolar.Size = new Size(82, 22);
this.btnZoomYOut.Location = new Point(165, yRow2);
this.btnZoomYIn.Location = new Point(213, yRow2);
this.lblMinX.AutoSize = true;
this.lblMinX.ForeColor = ThemeHelper.LightText;
this.lblMinX.Text = "Min X:";
this.lblMinX.Location = new Point(360, yRow1 + 4);
this.pnlSep2.Location = new Point(265, yRow2 + 2);
this.pnlSep2.Size = new Size(1, 22);
this.pnlSep2.BackColor = ThemeHelper.BorderColor;
this.txtMinX.Location = new Point(402, yRow1);
this.txtMinX.Size = new Size(45, 25);
this.txtMinX.Text = "-10";
this.txtMinX.Font = new Font("Consolas", 9.5F);
this.txtMinX.BackColor = ThemeHelper.CardBackground;
this.txtMinX.ForeColor = Color.White;
this.txtMinX.BorderStyle = BorderStyle.FixedSingle;
this.btnAspect1to1.Location = new Point(272, yRow2);
this.btnResetView.Location = new Point(320, yRow2);
this.lblMaxX.AutoSize = true;
this.lblMaxX.ForeColor = ThemeHelper.LightText;
this.lblMaxX.Text = "Max X:";
this.lblMaxX.Location = new Point(452, yRow1 + 4);
this.pnlSepMain.Location = new Point(384, yRow2 + 2);
this.pnlSepMain.Size = new Size(1, 22);
this.pnlSepMain.BackColor = ThemeHelper.BorderLight;
this.txtMaxX.Location = new Point(496, yRow1);
this.txtMaxX.Size = new Size(45, 25);
this.txtMaxX.Text = "10";
this.txtMaxX.Font = new Font("Consolas", 9.5F);
this.txtMaxX.BackColor = ThemeHelper.CardBackground;
this.txtMaxX.ForeColor = Color.White;
this.txtMaxX.BorderStyle = BorderStyle.FixedSingle;
this.chkClampRange.Text = "Kısıtla";
this.chkClampRange.ForeColor = ThemeHelper.LightText;
this.chkClampRange.Location = new Point(548, yRow1 + 3);
this.chkClampRange.Size = new Size(68, 22);
this.btnPlot.Location = new Point(622, yRow1 - 1);
int yRow2 = 70;
this.btnZoomXIn.Location = new Point(14, yRow2);
this.btnZoomXOut.Location = new Point(118, yRow2);
this.btnZoomX10.Location = new Point(207, yRow2);
this.btnZoomYIn.Location = new Point(266, yRow2);
this.btnZoomYOut.Location = new Point(370, yRow2);
this.btnAspect1to1.Location = new Point(459, yRow2);
this.btnResetView.Location = new Point(531, yRow2);
this.chkCriticalPoints.Text = "Kritik Noktalar";
this.chkCriticalPoints.Text = "● Kritik Noktalar";
this.chkCriticalPoints.ForeColor = Color.FromArgb(52, 211, 153);
this.chkCriticalPoints.Location = new Point(603, yRow2 + 2);
this.chkCriticalPoints.Size = new Size(110, 24);
this.chkCriticalPoints.Font = new Font("Segoe UI Semibold", 8.8F, FontStyle.Bold);
this.chkCriticalPoints.Location = new Point(396, yRow2 + 2);
this.chkCriticalPoints.Size = new Size(140, 22);
this.chkInspectMode.Text = "Teğet İncele";
this.chkInspectMode.Text = "● Teğet İncele";
this.chkInspectMode.ForeColor = Color.FromArgb(56, 189, 248);
this.chkInspectMode.Location = new Point(717, yRow2 + 2);
this.chkInspectMode.Size = new Size(100, 24);
this.chkInspectMode.Font = new Font("Segoe UI Semibold", 8.8F, FontStyle.Bold);
this.chkInspectMode.Location = new Point(542, yRow2 + 2);
this.chkInspectMode.Size = new Size(115, 22);
this.chkShowAsymptotes.Text = "Asimptotlar";
this.chkShowAsymptotes.Text = "● Asimptotlar";
this.chkShowAsymptotes.ForeColor = Color.FromArgb(244, 63, 94);
this.chkShowAsymptotes.Location = new Point(821, yRow2 + 2);
this.chkShowAsymptotes.Size = new Size(95, 24);
this.chkShowAsymptotes.Font = new Font("Segoe UI Semibold", 8.8F, FontStyle.Bold);
this.chkShowAsymptotes.Location = new Point(664, yRow2 + 2);
this.chkShowAsymptotes.Size = new Size(110, 22);
this.pnlControlsBorder.Dock = DockStyle.Bottom;
this.pnlControlsBorder.Height = 1;
this.pnlControlsBorder.BackColor = ThemeHelper.BorderColor;
this.pnlControls.Controls.Add(this.pnlPresets);
this.pnlControls.Controls.Add(this.lblEquation);
@ -260,16 +292,21 @@ namespace MathApp.Controls
this.pnlControls.Controls.Add(this.txtMaxX);
this.pnlControls.Controls.Add(this.chkClampRange);
this.pnlControls.Controls.Add(this.btnPlot);
this.pnlControls.Controls.Add(this.btnZoomXIn);
this.pnlControls.Controls.Add(this.btnZoomXOut);
this.pnlControls.Controls.Add(this.btnZoomXIn);
this.pnlControls.Controls.Add(this.btnZoomX10);
this.pnlControls.Controls.Add(this.btnZoomYIn);
this.pnlControls.Controls.Add(this.pnlSep1);
this.pnlControls.Controls.Add(this.btnZoomYOut);
this.pnlControls.Controls.Add(this.btnZoomYIn);
this.pnlControls.Controls.Add(this.pnlSep2);
this.pnlControls.Controls.Add(this.btnAspect1to1);
this.pnlControls.Controls.Add(this.btnResetView);
this.pnlControls.Controls.Add(this.pnlSepMain);
this.pnlControls.Controls.Add(this.chkCriticalPoints);
this.pnlControls.Controls.Add(this.chkInspectMode);
this.pnlControls.Controls.Add(this.chkShowAsymptotes);
this.pnlControls.Controls.Add(this.pnlControlsBorder);
// pnlRightSide (Tabbed Manager)
this.pnlRightSide.Dock = DockStyle.Right;
@ -765,6 +802,10 @@ namespace MathApp.Controls
private CheckBox chkCriticalPoints;
private CheckBox chkInspectMode;
private CheckBox chkShowAsymptotes;
private Panel pnlSep1;
private Panel pnlSep2;
private Panel pnlSepMain;
private Panel pnlControlsBorder;
private Panel pnlRightSide;
private TabControl tabManager;

View file

@ -1631,7 +1631,7 @@ namespace MathApp.Controls
{
var validCurves = _curves.Where(c => c.Visible && !c.IsVerticalLine && !c.IsPolar).ToList();
StringBuilder sb = new StringBuilder();
sb.AppendLine("% ttCalculator v3.0 LaTeX Pgfplots / TikZ Kodu");
sb.AppendLine("% ttCalculator v3.1 LaTeX Pgfplots / TikZ Kodu");
sb.AppendLine("\\begin{tikzpicture}");
sb.AppendLine("\\begin{axis}[");
sb.AppendLine($" xmin={rangeMinX:F1}, xmax={rangeMaxX:F1},");

View file

@ -156,7 +156,7 @@ namespace MathApp
// Footer version label
this.lblVersion.Dock = DockStyle.Bottom;
this.lblVersion.Height = 28;
this.lblVersion.Text = "v3.0 • 128-bit Decimal Motoru • 60 FPS";
this.lblVersion.Text = "v3.1 • 128-bit Decimal Motoru • 60 FPS";
this.lblVersion.Font = new Font("Segoe UI", 8F);
this.lblVersion.ForeColor = Color.FromArgb(100, 116, 139);
this.lblVersion.TextAlign = ContentAlignment.MiddleCenter;

View file

@ -75,21 +75,64 @@ namespace MathApp
return btn;
}
public static Button CreateCompactChip(string text)
{
Button btn = new Button
{
Text = text,
AutoSize = true,
MinimumSize = new Size(54, 24),
Height = 24,
Padding = new Padding(6, 1, 6, 1),
FlatStyle = FlatStyle.Flat,
BackColor = Color.FromArgb(24, 33, 52),
ForeColor = Color.FromArgb(186, 230, 253),
Font = new Font("Segoe UI", 8.2F, FontStyle.Regular),
Cursor = Cursors.Hand,
Margin = new Padding(0, 0, 6, 0),
UseVisualStyleBackColor = false
};
btn.FlatAppearance.BorderSize = 1;
btn.FlatAppearance.BorderColor = Color.FromArgb(51, 65, 85);
btn.FlatAppearance.MouseOverBackColor = Color.FromArgb(30, 58, 138);
return btn;
}
public static Button CreateSegmentedButton(string text, int width = 48, int height = 26)
{
Button btn = new Button
{
Text = text,
Size = new Size(width, height),
FlatStyle = FlatStyle.Flat,
BackColor = Color.FromArgb(24, 33, 52),
ForeColor = Color.FromArgb(226, 232, 240),
Font = new Font("Segoe UI Semibold", 8.5F, FontStyle.Bold),
Cursor = Cursors.Hand,
UseVisualStyleBackColor = false
};
btn.FlatAppearance.BorderSize = 1;
btn.FlatAppearance.BorderColor = Color.FromArgb(51, 65, 85);
btn.FlatAppearance.MouseOverBackColor = Color.FromArgb(47, 65, 96);
btn.FlatAppearance.MouseDownBackColor = Color.FromArgb(14, 165, 233);
return btn;
}
public static Panel CreateHeaderPanel(string title, string subtitle)
{
Panel pnlHeader = new Panel
{
Dock = DockStyle.Top,
Height = 74,
Height = 72,
BackColor = Color.FromArgb(13, 20, 36),
Padding = new Padding(24, 12, 24, 8)
Padding = new Padding(24, 10, 24, 8)
};
// Vibrant left accent indicator pill
Panel accentPill = new Panel
{
Location = new Point(12, 16),
Size = new Size(4, 38),
Location = new Point(14, 14),
Size = new Size(4, 44),
BackColor = AccentBlue
};
@ -97,10 +140,10 @@ namespace MathApp
{
Text = title,
UseMnemonic = false,
Location = new Point(24, 12),
Location = new Point(26, 11),
AutoSize = false,
Size = new Size(900, 28),
Font = new Font("Segoe UI Semibold", 15F, FontStyle.Bold),
Size = new Size(950, 26),
Font = new Font("Segoe UI Semibold", 14.5F, FontStyle.Bold),
ForeColor = LightText,
TextAlign = ContentAlignment.MiddleLeft
};
@ -109,10 +152,10 @@ namespace MathApp
{
Text = subtitle,
UseMnemonic = false,
Location = new Point(24, 40),
Location = new Point(26, 39),
AutoSize = false,
Size = new Size(900, 22),
Font = new Font("Segoe UI", 8.8F, FontStyle.Regular),
Size = new Size(950, 22),
Font = new Font("Segoe UI", 9F, FontStyle.Regular),
ForeColor = MutedText,
TextAlign = ContentAlignment.MiddleLeft
};

View file

@ -9,7 +9,7 @@
<ApplicationIcon>logo.ico</ApplicationIcon>
<AssemblyName>ttCalculator</AssemblyName>
<Product>ttCalculator - Gelişmiş Matematik &amp; Nümerik Analiz Stüdyosu</Product>
<Version>3.0.0</Version>
<Version>3.1.0</Version>
<Company>ttCalculator</Company>
</PropertyGroup>

View file

@ -11,7 +11,7 @@ namespace MathApp.Tests
static void Main(string[] args)
{
Console.WriteLine("=================================================");
Console.WriteLine("ttCalculator v3.0 Graph Plotter Studio Verification");
Console.WriteLine("ttCalculator v3.1 Graph Plotter Studio Verification");
Console.WriteLine("=================================================");
int passed = 0;