From 3972be9f970bb5651fd59d0b934e55a13b5c3fb8 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 18 May 2022 08:56:59 -0400 Subject: [PATCH] remove licensing info --- assets/text.json | 1 - src/data.rs | 3 --- src/math_app.rs | 10 ++-------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/assets/text.json b/assets/text.json index a477429..31c0238 100644 --- a/assets/text.json +++ b/assets/text.json @@ -23,7 +23,6 @@ "help_other": [ "- Extrema (local minimums and maximums) and Roots (intersections with the x-axis) are displayed though yellow and light blue points located on the graph. You can toggle these in the Side Panel." ], - "license_info": "The AGPL license ensures that the user of this web app has the ability to view the project's source code, as well as contribute to it.", "welcome": [ "Welcome to the (Yet-to-be-named) Graphing Software!", "This project aims to provide an intuitive experience graphing mathematical functions with features such as Integration, Differentiation, Extrema, Roots, and much more! (see the Help Window for more details)" diff --git a/src/data.rs b/src/data.rs index 561cf9b..6b52a22 100644 --- a/src/data.rs +++ b/src/data.rs @@ -5,7 +5,6 @@ pub struct TextData { pub help_panel: egui::RichText, pub help_function: egui::RichText, pub help_other: egui::RichText, - pub license_info: egui::RichText, pub welcome: egui::RichText, } @@ -16,7 +15,6 @@ pub struct TextDataRaw { pub help_panel: String, pub help_function: String, pub help_other: String, - pub license_info: String, pub welcome: String, } @@ -31,7 +29,6 @@ impl TextDataRaw { help_panel: RichText::from(self.help_panel), help_function: RichText::from(self.help_function), help_other: RichText::from(self.help_other), - license_info: RichText::from(self.license_info), welcome: RichText::from(self.welcome).size(SIZE + 1.0), } } diff --git a/src/math_app.rs b/src/math_app.rs index 5e2df6f..a84ba2a 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -5,8 +5,8 @@ use crate::function_manager::FunctionManager; use crate::misc::{dyn_mut_iter, option_vec_printer}; use eframe::App; use egui::{ - plot::Plot, style::Margin, Button, CentralPanel, Color32, ComboBox, Context, Frame, Key, Label, - Layout, RichText, SidePanel, Slider, TopBottomPanel, Vec2, Visuals, Window, + plot::Plot, style::Margin, Button, CentralPanel, ComboBox, Context, Frame, Key, Layout, + SidePanel, Slider, TopBottomPanel, Vec2, Visuals, Window, }; use emath::{Align, Align2}; use epaint::Rounding; @@ -363,12 +363,6 @@ impl MathApp { ui.with_layout(Layout::bottom_up(Align::Min), |ui| { // Contents put in reverse order from bottom to top due to the 'buttom_up' layout - // Licensing information - ui.add(Label::new( - RichText::new("(and licensed under AGPLv3)").color(Color32::LIGHT_GRAY), - )) - .on_hover_text(self.text.license_info.clone()); - // Hyperlink to project's github ui.hyperlink_to( "I'm Open Source!",