Skip to content
Merged

icons #789

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions public/containers/mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/phCopy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/phSquareSplitHorizontal.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/phSquareSplitVerticalLight.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/icons/phTreeViewDuotone.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import disabledClockIconSrc from '/icons/clock-disabled.svg';

const timepickerInputShapeRestrictions: ShapeSizeRestrictions = {
minWidth: 100,
minHeight: 50,
minHeight: 38,
maxWidth: -1,
maxHeight: 50,
maxHeight: 38,
defaultWidth: 220,
defaultHeight: 50,
defaultHeight: 38,
};

const shapeType: ShapeType = 'timepickerinput';
Expand Down Expand Up @@ -114,7 +114,7 @@ export const TimepickerInputShape = forwardRef<any, ShapeProps>(
<Text
text={text}
x={10}
y={(restrictedHeight - fontSize) / 2 + 2}
y={(restrictedHeight - fontSize) / 2}
width={availableWidth}
fontFamily={BASIC_SHAPE.DEFAULT_FONT_FAMILY}
fontSize={BASIC_SHAPE.DEFAULT_FONT_SIZE}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {

const adornerIconSize = 20;
const adornerPadding = 5;
const adornerTotalWidth = adornerIconSize * 3 + 17 * 2 + 30;
const adornerTotalWidth = adornerIconSize * 3 + screenMargin;

// Calculate inner screen coordinates (excluding frame margins)
const screenX = margin + screenMargin; // Left edge of inner screen
Expand All @@ -62,7 +62,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {
const signalX = adornerStartX + 17;
const batteryX = adornerStartX + 20 * 2;

const timeX = adornerStartX + 23 * 3;
const timeX = screenX + screenMargin;
const timeY = adornerY + 4;
const timeWidth = 40;

Expand All @@ -88,7 +88,7 @@ export const MobilePhoneShape = forwardRef<any, ShapeProps>((props, ref) => {
const now = new Date();
setCurrentTime(
now.toLocaleTimeString('es-ES', {
hour: '2-digit',
hour: 'numeric',
minute: '2-digit',
hour12: false,
})
Expand Down
24 changes: 24 additions & 0 deletions src/pods/properties/components/icon-selector/modal/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2560,4 +2560,28 @@ export const iconCollection: IconInfo[] = [
searchTerms: ['calculator', 'math', 'arithmetic', 'compute', 'calculate'],
categories: ['IT'],
},
{
name: 'Tree view doutone',
filename: 'phTreeViewDuotone.svg',
searchTerms: ['tree', 'view', 'doutone'],
categories: ['IT'],
},
{
name: 'Square Split horizontal',
filename: 'phSquareSplitHorizontal.svg',
searchTerms: ['square', 'split', 'horizontal'],
categories: ['IT'],
},
{
name: 'Square Split vertical light',
filename: 'phSquareSplitVerticalLight.svg',
searchTerms: ['square', 'split', 'vertical'],
categories: ['IT'],
},
{
name: 'Copy',
filename: 'phCopy.svg',
searchTerms: ['copy', 'duplicate', 'clone'],
categories: ['IT'],
},
];