Commit e8c702e
committed
Enhance DiffCheckerScreen UI and add selected view indicator
This commit introduces several UI improvements to the `DiffCheckerScreen`:
- **Selected View Indicator:**
- Added a checkmark icon (Icons.Default.Check) to the `DropdownMenuItem` corresponding to the currently selected `DiffViewType` (TWO_SIDE, SEPARATE, UNIFIED). This provides clear visual feedback to the user about the active view mode.
- **Visual Tweaks:**
- Renamed "Column View" to "Separate View" in the dropdown menu for better clarity.
- Adjusted padding around the "Live" text and Switch in the top app bar for a more polished look.
- Removed vertical padding from the "Swap Texts" button.
- Reduced overall screen padding from 16.dp to 10.dp.
- **Diff Result Container:**
- Wrapped the diff result display (TwoSideCharDiffText, ColumCharDiffText, UnifiedCharDiffText) in a `Box` with a white background and rounded corners. This visually separates the diff output from the input fields and controls.
- The diff result container now uses `weight(1f)` to occupy the remaining vertical space.
Additionally, the `.idea/appInsightsSettings.xml` file was updated to set "Android Vitals" as the selected tab in App Insights.1 parent 7c920ba commit e8c702e
2 files changed
Lines changed: 57 additions & 11 deletions
File tree
- .idea
- app/src/main/java/dev/jahidhasanco/diffly/presentation/screen
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 56 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | | - | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
128 | 139 | | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
133 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
134 | 157 | | |
135 | 158 | | |
136 | 159 | | |
137 | 160 | | |
138 | 161 | | |
139 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
140 | 175 | | |
141 | 176 | | |
142 | 177 | | |
| |||
148 | 183 | | |
149 | 184 | | |
150 | 185 | | |
151 | | - | |
| 186 | + | |
152 | 187 | | |
153 | 188 | | |
154 | 189 | | |
| |||
203 | 238 | | |
204 | 239 | | |
205 | 240 | | |
206 | | - | |
207 | 241 | | |
208 | 242 | | |
209 | 243 | | |
| |||
265 | 299 | | |
266 | 300 | | |
267 | 301 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
272 | 316 | | |
| 317 | + | |
273 | 318 | | |
274 | 319 | | |
275 | 320 | | |
0 commit comments