android-midscene-automation 1.1.6 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/style.css CHANGED
@@ -2656,7 +2656,7 @@ select {
2656
2656
  overflow: hidden;
2657
2657
  border: 1px solid #e6edf5;
2658
2658
  border-radius: 12px;
2659
- background: var(--flow-background, #f8fafc);
2659
+ background: var(--flow-background, var(--ui-bg-soft));
2660
2660
  }
2661
2661
 
2662
2662
  .appium-flow-canvas--dialog.appium-flow-canvas--vue {
@@ -2668,8 +2668,8 @@ select {
2668
2668
  width: 100%;
2669
2669
  height: 100%;
2670
2670
  background:
2671
- radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0) 0 0 / 22px 22px,
2672
- var(--flow-background, #f8fafc);
2671
+ radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--flow-background) 75%, var(--ui-text-muted)) 1px, transparent 0) 0 0 / 22px 22px,
2672
+ var(--flow-background, var(--ui-bg-soft));
2673
2673
  }
2674
2674
 
2675
2675
  .appium-vue-flow .vue-flow__pane {
@@ -2703,7 +2703,7 @@ select {
2703
2703
  .appium-vue-flow .vue-flow__edge-path,
2704
2704
  .appium-vue-flow .vue-flow__connection-path {
2705
2705
  stroke: var(--appium-flow-line-color, #94a3b8);
2706
- stroke-width: 2.5;
2706
+ stroke-width: 2.25;
2707
2707
  stroke-linecap: round;
2708
2708
  stroke-linejoin: round;
2709
2709
  fill: none;
@@ -2752,12 +2752,15 @@ select {
2752
2752
  pointer-events: none;
2753
2753
  }
2754
2754
 
2755
- .appium-flow-handle--top {
2756
- top: 0;
2757
- }
2758
-
2759
- .appium-flow-handle--bottom {
2760
- bottom: 0;
2755
+ .appium-flow-graph-node--step .appium-flow-handle {
2756
+ width: 7px;
2757
+ height: 7px;
2758
+ min-width: 7px;
2759
+ min-height: 7px;
2760
+ border: 1px solid var(--ui-surface);
2761
+ border-radius: 50%;
2762
+ background: var(--appium-flow-line-color, #94a3b8);
2763
+ opacity: 1;
2761
2764
  }
2762
2765
 
2763
2766
  /* Invisible split handles share one point; Vue Flow's 5px minimum creates a gap. */
@@ -2768,6 +2771,8 @@ select {
2768
2771
  min-height: 0;
2769
2772
  top: 50%;
2770
2773
  bottom: auto;
2774
+ left: 50%;
2775
+ right: auto;
2771
2776
  transform: translate(-50%, -50%);
2772
2777
  }
2773
2778
 
@@ -2778,9 +2783,9 @@ select {
2778
2783
  width: 180px;
2779
2784
  height: 62px;
2780
2785
  padding: 10px 14px;
2781
- border: 1px solid #e6edf5;
2786
+ border: 1px solid var(--ui-border);
2782
2787
  border-radius: 8px;
2783
- background: #fff;
2788
+ background: var(--ui-surface);
2784
2789
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
2785
2790
  }
2786
2791
 
@@ -2803,14 +2808,14 @@ select {
2803
2808
  }
2804
2809
 
2805
2810
  .appium-flow-start-card strong {
2806
- color: #1f2937;
2811
+ color: var(--ui-text);
2807
2812
  font-size: 14px;
2808
2813
  line-height: 1.2;
2809
2814
  }
2810
2815
 
2811
2816
  .appium-flow-start-card small {
2812
2817
  margin-top: 4px;
2813
- color: #64748b;
2818
+ color: var(--ui-text-muted);
2814
2819
  font-size: 12px;
2815
2820
  }
2816
2821
 
@@ -2885,9 +2890,9 @@ select {
2885
2890
  width: 340px;
2886
2891
  min-height: 78px;
2887
2892
  padding: 10px 14px;
2888
- border: 1px solid #dfe8f3;
2893
+ border: 1px solid var(--ui-border);
2889
2894
  border-radius: 8px;
2890
- background: #fff;
2895
+ background: var(--ui-surface);
2891
2896
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
2892
2897
  color: inherit;
2893
2898
  text-align: left;
@@ -2909,18 +2914,20 @@ select {
2909
2914
  }
2910
2915
 
2911
2916
  .appium-flow-step-shell--condition .appium-flow-step-card {
2912
- border-color: #f6a23a;
2913
- background: #fffbf4;
2917
+ border-color: var(--ui-border);
2918
+ border-left: 3px solid #f6a23a;
2919
+ background: color-mix(in srgb, var(--ui-surface) 94%, #f6a23a);
2914
2920
  }
2915
2921
 
2916
2922
  .appium-flow-step-shell--assertion .appium-flow-step-card {
2917
- border-color: #95d475;
2918
- background: #f7fff5;
2923
+ border-color: var(--ui-border);
2924
+ border-left: 3px solid #95d475;
2925
+ background: color-mix(in srgb, var(--ui-surface) 94%, #95d475);
2919
2926
  }
2920
2927
 
2921
2928
  .appium-flow-step-shell--selected .appium-flow-step-card {
2922
2929
  border-color: #2f7df6;
2923
- background: #eaf2ff;
2930
+ background: color-mix(in srgb, var(--ui-surface) 90%, var(--ui-primary));
2924
2931
  box-shadow: 0 0 0 3px rgba(47, 125, 246, 0.16);
2925
2932
  }
2926
2933
 
@@ -2944,21 +2951,21 @@ select {
2944
2951
  }
2945
2952
 
2946
2953
  .appium-flow-step-card__content strong {
2947
- color: #1f2937;
2954
+ color: var(--ui-text);
2948
2955
  font-size: 14px;
2949
2956
  line-height: 1.35;
2950
2957
  }
2951
2958
 
2952
2959
  .appium-flow-step-card__content small {
2953
2960
  margin-top: 3px;
2954
- color: #64748b;
2961
+ color: var(--ui-text-muted);
2955
2962
  font-size: 12px;
2956
2963
  line-height: 1.35;
2957
2964
  }
2958
2965
 
2959
2966
  .appium-flow-step-card__content em {
2960
2967
  margin-top: 3px;
2961
- color: #1f2937;
2968
+ color: var(--ui-text);
2962
2969
  font-style: normal;
2963
2970
  font-size: 12px;
2964
2971
  line-height: 1.35;
@@ -2979,16 +2986,16 @@ select {
2979
2986
  width: 22px;
2980
2987
  height: 22px;
2981
2988
  margin: 0;
2982
- color: #64748b;
2989
+ color: var(--ui-text-muted);
2983
2990
  }
2984
2991
 
2985
2992
  .appium-flow-step-editor {
2986
2993
  grid-area: 2 / 1;
2987
2994
  width: 340px;
2988
2995
  margin-top: 8px;
2989
- border-color: #dfe8f3;
2996
+ border-color: var(--ui-border);
2990
2997
  border-radius: 8px;
2991
- background: #fff;
2998
+ background: var(--ui-surface);
2992
2999
  }
2993
3000
 
2994
3001
  .appium-action-dropdown .el-dropdown-menu {
@@ -4044,11 +4051,11 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
4044
4051
  box-sizing: border-box;
4045
4052
  width: fit-content;
4046
4053
  max-width: 100%;
4047
- padding: 2px;
4048
- border: 1px solid #dbe3ee;
4049
- border-radius: 14px;
4050
- background: linear-gradient(180deg, #fff, #f8fafc);
4051
- box-shadow: inset 0 1px 0 rgb(255 255 255 / 95%), 0 4px 12px -4px rgb(15 23 42 / 20%);
4054
+ padding: 4px;
4055
+ border: 1px solid var(--ui-border);
4056
+ border-radius: var(--ui-radius-pill);
4057
+ background: var(--ui-bg-soft);
4058
+ box-shadow: var(--ui-shadow-inset);
4052
4059
  }
4053
4060
 
4054
4061
  .el-radio-group:has(.el-radio-button) .el-radio-button {
@@ -4062,12 +4069,13 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
4062
4069
  justify-content: center;
4063
4070
  box-sizing: border-box;
4064
4071
  min-height: 32px;
4065
- padding: 6px 12px;
4072
+ padding: 6px 14px;
4066
4073
  border: 0 !important;
4067
- border-radius: 11px !important;
4074
+ border-radius: var(--ui-radius-pill) !important;
4068
4075
  background: transparent;
4069
4076
  box-shadow: none !important;
4070
4077
  color: var(--ui-text-secondary);
4078
+ font-size: 13px;
4071
4079
  font-weight: 500;
4072
4080
  line-height: 1.25;
4073
4081
  white-space: normal;
@@ -4076,19 +4084,19 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
4076
4084
  }
4077
4085
 
4078
4086
  .el-radio-group:has(.el-radio-button) .el-radio-button:not(.is-active):not(.is-disabled) .el-radio-button__inner:hover {
4079
- background: #f1f5f9;
4087
+ background: transparent;
4080
4088
  color: var(--ui-primary);
4081
4089
  }
4082
4090
 
4083
4091
  .el-radio-group:has(.el-radio-button) .el-radio-button.is-active .el-radio-button__inner {
4084
- background: linear-gradient(180deg, #438cf5, #2574e8);
4085
- box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 4px 12px rgb(37 116 232 / 34%) !important;
4086
- color: #fff;
4092
+ background: var(--ui-surface);
4093
+ box-shadow: var(--ui-shadow-control) !important;
4094
+ color: var(--ui-primary);
4087
4095
  font-weight: 600;
4088
4096
  }
4089
4097
 
4090
4098
  .el-radio-group:has(.el-radio-button) .el-radio-button.is-active:not(.is-disabled) .el-radio-button__inner:active {
4091
- box-shadow: inset 0 2px 5px rgb(15 23 42 / 20%) !important;
4099
+ box-shadow: var(--ui-shadow-inset) !important;
4092
4100
  transform: translateY(1px);
4093
4101
  }
4094
4102
 
@@ -4098,8 +4106,9 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
4098
4106
  }
4099
4107
 
4100
4108
  .el-radio-group:has(.el-radio-button) .el-radio-button.is-active.is-disabled .el-radio-button__inner {
4101
- background: #dbeafe;
4102
- color: #64748b;
4109
+ background: var(--ui-surface);
4110
+ box-shadow: none !important;
4111
+ color: var(--el-disabled-text-color);
4103
4112
  }
4104
4113
 
4105
4114
  .el-radio-group:has(.el-radio-button) .el-radio-button__original-radio:focus-visible + .el-radio-button__inner {
@@ -4165,3 +4174,10 @@ button:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -2p
4165
4174
  .el-input .el-input__wrapper, .el-select .el-select__wrapper,
4166
4175
  .el-textarea .el-textarea__inner { transition: none; }
4167
4176
  }
4177
+
4178
+ /* Dark flow palettes are scoped to the canvas; the surrounding app keeps its theme. */
4179
+ .appium-flow-canvas--dark-nodes {
4180
+ --ui-shadow-card: 0 2px 10px rgb(0 0 0 / 20%);
4181
+ --ui-shadow-control: 0 2px 5px rgb(0 0 0 / 20%);
4182
+ --ui-shadow-inset: inset 0 1px 3px rgb(0 0 0 / 15%);
4183
+ }
package/src/types.ts CHANGED
@@ -21,7 +21,7 @@ export type GeneratorForm = {
21
21
  };
22
22
 
23
23
  export type ConfigForm = {
24
- appium: { reportSummary?: ReportSummaryConfig; model: AiRecognitionModel; promptOptimizer?: { model: AiRecognitionModel }; aiPromptPresets?: AiPromptPreset[]; aiDeduplication?: AiDeduplicationConfig; flowBackgroundColor?: string; flowLineColor?: string; screenshotReport?: boolean };
24
+ appium: { reportSummary?: ReportSummaryConfig; model: AiRecognitionModel; promptOptimizer?: { model: AiRecognitionModel }; aiPromptPresets?: AiPromptPreset[]; aiDeduplication?: AiDeduplicationConfig; flowBackgroundColor?: string; flowNodeColor?: string; flowNodeBorderColor?: string; flowLineColor?: string; flowLineStyle?: 'straight' | 'curved'; flowLayoutDirection?: 'vertical' | 'horizontal'; screenshotReport?: boolean };
25
25
  runtime: {
26
26
  androidSdkPath: string;
27
27
  reportOutputPath: string;