Commit Graph

297 Commits

Author SHA1 Message Date
Rudy Huyn
bc473617ae
Simplify KeyboardShortcutManager and correctly support Alt-Gr key (#1223)
* Simplify KeyboardShortcutManager and correctly support Alt-Gr key

* replace multimap with map
move all global fields-functions to the class

* feedback

Co-authored-by: Eric Wong <eriwong@microsoft.com>
2020-09-15 12:43:50 -07:00
Stephanie Anderl
503c27ae7b
Update WinUI Version to 2.4 (#1354)
* Updated to WinUI2.4 and fixed NavMenu about flyout and Dark Mode EquationEditBox

* Added updated equationbox background to the focusederror state
2020-09-01 16:48:22 -07:00
Pepe Rivera
5336079e32
Loc patch (#1357) 2020-08-31 20:52:57 -07:00
Stephanie Anderl
96c1a45774
Revert "Updated the Calculator projects to include the /Z7 compiler flag" (#1356)
* Revert "Updated the Calculator projects to include the /Z7 compiler flag (#1337)"

This reverts commit 6299ec2303.

* Update Calculator.vcxproj

Add  %(AdditionalOptions) where it is missing

* Update TraceLogging.vcxproj

Updated the AdditionalOptions to add /await /std:c++17 /utf-8  so this project is consistent with the other projects.
2020-08-25 09:31:40 -07:00
Lee Won Jun
9206520121
Change the initialization time of Radio button's isChecked (#1312)
* Change the initialization time of Radio button's isChecked

* Rollback checkDefaultBitShift and Use Enum instead of String

* Fix Check Default
- In previous versions, there was an issue where button availability was reset when opening BitShift Flyout not when the mode is changed

* Reset Calculator Type in Calculator ViewModel when mode change to not Calculator mode

* Revert "Reset Calculator Type in Calculator ViewModel when mode change to not Calculator mode"

This reverts commit a0d2f84513bc2d36fea3d75445782e1c67bc2e8d.

* Check deferred load button
2020-08-20 15:30:48 -07:00
Callum Shipton
95a1ba4c8c
'Keep on top' button appears last in the tab order (#1339) (#1347)
- Added TabIndex to AlwaysOnTop button
2020-08-12 09:14:45 -07:00
Callum Shipton
331388c000
Enable keyboard entry in bit-toggling mode #478 (#1346)
The programmer radix buttons were being disabled when the bit flip panel was selected, causing keyboard events to be ignored.
They should actually only be hidden in bit flip mode.

- Corrected programmer radix buttons to continue being enabled just hidden when the programmer calculator is in bit flip mode.
- Renamed AreProgrammerRadixOperatorsEnabled property to the more appropriate AreProgrammerRadixOperatorsVisible.
2020-08-12 08:53:31 -07:00
Rudy Huyn
1c8b642376
Remove ICustomPropertyProviders (#1229)
* Remove unused ICustomPropertyProviders
* Modify UI tests to not use Customproperties
2020-08-12 08:22:49 -07:00
Stephanie Anderl
6299ec2303
Updated the Calculator projects to include the /Z7 compiler flag (#1337)
* Added the /Z7 compiler flag

* added /Z7 compiler flag to remaining calculator projects

* Add %(AdditionalOptions) to complier configuration where it is missing
2020-08-11 15:39:32 -07:00
Pepe Rivera
258833f266
Skip items that are not enabled when creating jump list (#1333)
* Fix jumplist bug

* Add extra check
2020-08-06 12:28:38 -07:00
Quentin Al-Timimi
3309380907
Updated Resource Strings (#1332) 2020-08-04 10:28:10 -07:00
Eric Wong
dc707da56a
update localized strings (#1322) 2020-07-22 13:00:44 -07:00
Eric Tian
0e1c4f8cb4
CornerRadius! (#1321) 2020-07-21 14:28:47 -07:00
Eric Tian
7379876432
Fix accent colour mouse-over (#1315) 2020-07-21 09:23:49 -07:00
Vignesh M
264babc608
Resolution for Bit Shift radio button announcements (#1317) 2020-07-20 15:05:22 -07:00
Quentin Al-Timimi
96700ceb97
Update to Localized Strings (#1313) 2020-07-14 11:38:25 -07:00
Vignesh M
b1f49a2fcb
Narrator does not provide the confirmation when user deleted one history from the history list items #1172 (#1302)
* Narrator reads incorrect information as “History and Memory list” in Programmer Calculator #1174
2020-07-14 10:08:57 -07:00
Vignesh M
ca53d01e4e
Narrator is not providing any confirmation after activating Keep on top button (#1300)
* Narrator is not providing any confirmation after activating Keep on top button #1173
2020-07-13 17:02:08 -07:00
Quentin Al-Timimi
0175b51655
Updated APIs to use new GetClosePointData() from Graphing Engine. (#1250)
* Updated APIs to use new GetClosePointData() from Graphing Engine. Now specifiying precision on API consumption to aid with correct display and rounding.

* Updated function to be const-corect

* Updated to use correct APIs

* Converted TraceValue from Point to two doubles, point's X and Y was using float and conversion between float and doubles was causing unwanted rounding.

* Update to pch file and fixing typo

* Point to updated graphing version
2020-06-30 15:08:54 -07:00
Vignesh M
a3163f64e3
Narrator reads incorrect information as “History and Memory list” in Programmer Calculator #1174 (#1286) 2020-06-26 14:38:42 -07:00
Pepe Rivera
876a7fe13c
Remove preview tag from graphing mode (#1285)
* Remove preview tag

* Remove preview tag

* fix bug
2020-06-23 13:06:23 -07:00
Pepe Rivera
81ea002cf9
Fix equations not getting focus after being removed (#1271) 2020-06-16 09:58:20 -07:00
Pepe Rivera
8f56ad0dc6
Fix tracing button not receiving focus after the 'esc' key is used to exit tracing mode (#1272) 2020-06-16 09:58:02 -07:00
Pepe Rivera
db15b602f9
Fix bitwise popup focus order (#1273) 2020-06-16 09:57:43 -07:00
Pepe Rivera
4c8e1cb5f0
Check for valid input in min/max/step fields (#1270) 2020-06-15 14:13:56 -07:00
Pepe Rivera
2104059f72
Add localized strings 2020-06-10 (#1266) 2020-06-11 10:57:42 -07:00
Rudy Huyn
0a4296f06a
Modify how we manage round corners (#1261) 2020-06-02 12:58:47 -07:00
Matt Cooley
52ba3755ff
Add localized strings 2020-06-02 (#1259) 2020-06-02 11:20:37 -07:00
Rudy Huyn
2a001aee2d
Replace the short-life certificate with long-life one (#1166) 2020-06-01 19:00:29 -07:00
Quentin
178075d7d7
Setting IsEnabled to be conditional based on the AlwaysOnTop flag, (#1243) 2020-05-26 12:59:06 -05:00
Quentin
4fafc48a6f
Translations Patch for Preview Tag (#1247) 2020-05-26 11:51:56 -05:00
Stephanie Anderl
9a07755620
Fixed narrator issues in KGF and GraphView button, updated Trig radio button corner radius (#1227)
* fixed the trig units radio buttons rounded corners and narrator issues in kgf and graph reset

* removed extra whitespace

* Update src/Calculator/Resources/en-US/Resources.resw

Co-authored-by: Eric Wong <eriwong@microsoft.com>

* Update src/Calculator/Resources/en-US/Resources.resw

Co-authored-by: Eric Wong <eriwong@microsoft.com>

Co-authored-by: Eric Wong <eriwong@microsoft.com>
2020-05-26 09:34:45 -07:00
Rudy Huyn
143907f21f
Remove dead code from History (#1228)
* Clean history

* clean unit tests

* cleaning

* Remove friend class in HistoryViewModel
2020-05-25 15:02:27 -07:00
Quentin
4f03f995a2
Adding Preview tag to Resources File (#1239)
* Adding Preview tag to Resources File
2020-05-21 10:58:03 -05:00
Matt Cooley
6d122192d2
Check in localized strings 2020-05-15 (#1233) 2020-05-20 14:59:09 -07:00
Pepe Rivera
f2e423329d
Improve launch performance by delay loading NavigationView (#1213)
* Delay load graph engine

* Remove default behavior

* Delay load nav view

* Add automation properties

* clean up

* handle shortcut keys

* Include only navview changes

* Address PR comments

* manual merge fix

* PR Changes

* Undo other changes

* reset resw file

* fix margin
2020-05-19 09:58:11 -07:00
Matt Cooley
b4e850dc40
Remove more duplicate strings (#1235) 2020-05-16 12:16:54 -07:00
Matt Cooley
7f329f7729
Remove duplicate string for submit button automation name (#1234) 2020-05-16 10:48:38 -07:00
Rudy Huyn
80fbe891d6
Fix graph dark colors at launch (#1217) 2020-05-15 10:44:50 -07:00
Pepe Rivera
0f14e4f46e
Use ToggleButton for variable options chevron button (#1219)
* Use togglebutton instead

* Update src/Calculator/Views/GraphingCalculator/EquationInputArea.xaml

Co-authored-by: Rudy Huyn <rudyhuyn@gmail.com>

* Update src/Calculator/Views/GraphingCalculator/EquationInputArea.xaml

Co-authored-by: Rudy Huyn <rudyhuyn@gmail.com>

* undo pr suggestion

Co-authored-by: Rudy Huyn <rudyhuyn@gmail.com>
2020-05-13 18:42:35 -07:00
Rudy Huyn
7a6b0a72c3
Tweak UI: Title and History/Memory panels (#1215) 2020-05-11 16:38:45 -07:00
Pepe Rivera
1eda521992
fix style bugs in graph options (#1225) 2020-05-11 14:59:27 -07:00
Pepe Rivera
47760b4514
Don't submit equation when opening context menu (#1220)
* Don't submit equation when opening context menu

* Clean up
2020-05-08 18:50:22 -07:00
Pepe Rivera
66b64afd75
Fix styling bugs in graph settings and style panel (#1202) 2020-05-08 12:14:01 -07:00
Quentin
7b4ff49df8
Issue 935 - Updates to Scientific/Graphing Keypad (#1214)
* Switching from Difference between dates to Add or subtract dates ignores the first date field

https://github.com/microsoft/calculator/issues/254

Date field needs to persist across Date Difference and Add/Subtract From Date Mode.

* Update DateCalculator.xaml.cpp

Addressing review comments (white space, small code refactor), also found a null pointer exception during testing, this fix addresses that as well.

* Issue 935 - Updates to Scientific/Graphing Keypad

Update Scientific and Graphing keyboard layouts to expose square root button at the top level

* Updated ScientificModeFunctionalTests/SmokeTest_Cube()

Updated broken test to work with changes.
2020-05-08 12:32:17 -05:00
Eric Wong
e9c96c939a
Fix issues with sin being parsed incorrectly (#1199) 2020-05-08 10:31:02 -07:00
Stephanie Anderl
1e302cac58
Associate Units and Theme labels with the radio button groups (#1211)
* Wrap theme radio buttons in MUXC RadioButtons control to fix accessibility issue where the buttons are grouped with the theme title

* Associated theme labels with radio button groups
2020-05-07 16:41:08 -07:00
Stephanie Anderl
0105e6b319
Update tooltips for the Equation Button and Style Picker (#1163)
* Update EquationButton automation name and tooltips

* added tooltips to the stylepicker and fixed the issue where the color name did not update for dark mode colors

* Update src/Calculator/Resources/en-US/Resources.resw

Co-Authored-By: ItzLevvie <11600822+ItzLevvie@users.noreply.github.com>

* fixed the issue where the colors are only listed as black in the tooltip and automation name

* Add tooltips for high contrast colors

Co-authored-by: ItzLevvie <11600822+ItzLevvie@users.noreply.github.com>
2020-05-07 16:36:52 -07:00
Quentin
fd48f6ec1d
Switching from Difference between dates to Add or subtract dates ignores the first date field (#1210) 2020-05-06 15:14:54 -07:00
Stephanie Anderl
3055a12178
Updated EquationButton contrast fixed dark mode foreground color bugs (#1155)
* Fixed contrast between background and foreground colors in the equation button. Fixed the issue where the text in the equation text box is white when the background is white

* Adjust the foreground color algorithm

* moved the contrast method to utils so that it is resuable

* Moved brushes for the GetContrastColor method to the app.xaml resource dictionary

* Removed the change for the edit box colors, so it can be in a different PR
2020-05-05 10:20:05 -07:00