Skip to content

Commit

Permalink
feat: update Slider styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibazavr committed Jul 8, 2024
1 parent d395057 commit ca3efa4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/controls/Slider/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export interface ISliderProps extends ViewProps {
onValueChanged?: (low: number, high: number, byUser: boolean) => void;
hitSlop?: Insets;
}
const THUMB_RADIUS_LOW = px(12) * 2;
const THUMB_RADIUS_HIGH = THUMB_RADIUS_LOW + px(6);
const THUMB_RADIUS_LOW = px(16);
const THUMB_RADIUS_HIGH = THUMB_RADIUS_LOW + px(4);

const Slider: React.FC<ISliderProps> = ({
min,
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/controls/Slider/components/Thumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const Thumb = ({size}: {size: Animated.Value}) => {

const stylesCreate = createStyles(({spaces, colors}) => ({
root: {
borderWidth: spaces.Space2,
borderColor: colors.IconMuted,
backgroundColor: colors.BgPrimary,
borderWidth: spaces.Space4,
borderColor: colors.BorderExtra,
backgroundColor: colors.BgTertiary,
},
}));

Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/controls/Slider/stylesCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ const stylesCreate = createStyles(({spaces, colors}) => ({
rail: {
flex: 1,
height: spaces.Space4,
borderRadius: spaces.Space2,
backgroundColor: colors.IconMuted,
borderRadius: spaces.Space64,
backgroundColor: colors.BorderSoft,
},
selectedRailContainer: {
position: 'absolute',
},
selectedRail: {
height: spaces.Space4,
backgroundColor: colors.IconBase,
backgroundColor: colors.BorderExtra,
borderRadius: spaces.Space2,
},
highThumbContainer: {
Expand Down

0 comments on commit ca3efa4

Please sign in to comment.