Skip to content

Commit

Permalink
Update: Enhanced App Features
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 20, 2024
1 parent acefbc3 commit 5a3c616
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/css/converter.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#message {
color: #c60000;
text-align: center;
}

#formats {
Expand Down Expand Up @@ -85,3 +86,10 @@ canvas {
max-width: 100%;
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
7 changes: 7 additions & 0 deletions src/css/cropper.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@ canvas {
#crop-container {
width: 95%;
}

}

body.dark-mode #crop-container {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
9 changes: 8 additions & 1 deletion src/css/filter.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,11 @@ canvas {
width: 95%;
max-width: 100%;
}
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
1 change: 1 addition & 0 deletions src/css/resizer.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ body.dark-mode #inputSection,
body.dark-mode #previewSection {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .instructions {
Expand Down
8 changes: 8 additions & 0 deletions src/css/rotator.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ button:hover {
#message {
margin-top: 20px;
color: red;
text-align: center;
}

@media (max-width: 768px) {
Expand All @@ -82,3 +83,10 @@ button:hover {
width: auto;
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
7 changes: 7 additions & 0 deletions src/css/sound-remover.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ button {
max-width: 100%;
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
9 changes: 8 additions & 1 deletion src/css/thumbnail-generator.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ button {
}

.thumbnail.selected {
border-color: #007bff;
border: 5px solid #007bff;
}

#upload {
Expand Down Expand Up @@ -118,3 +118,10 @@ input[type="number"] {
max-width: 100%;
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
8 changes: 8 additions & 0 deletions src/css/watermarker.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ button {
align-items: center;
max-width: 70%;
border-radius: 8px;
padding: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

Expand Down Expand Up @@ -85,3 +86,10 @@ canvas {
width: auto;
}
}

body.dark-mode #controls,
body.dark-mode #preview {
background-color: #333;
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
4 changes: 2 additions & 2 deletions src/python/image_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def main():
height = int(input("Enter the new height: "))
resize_image(input_path, output_path, width, height)
elif choice == '2':
format = input("Enter the new image format (e.g., JPEG, PNG): ")
convert_image_format(input_path, output_path, format)
new_format = input("Enter the new image format (e.g., JPEG, PNG): ")
convert_image_format(input_path, output_path, new_format)
elif choice == '3':
degrees = float(input("Enter the number of degrees to rotate the image: "))
rotate_image(input_path, output_path, degrees)
Expand Down

0 comments on commit 5a3c616

Please sign in to comment.